const char *fw_name, struct device *device)
const char *fw_name, struct device *device, int hotplug)
fw_setup_class_device(struct firmware *fw, struct class_device **class_dev_p,		      const char *fw_name, struct device *device){	struct class_device *class_dev;	struct firmware_priv *fw_priv;	int retval;	*class_dev_p = NULL;	retval = fw_register_class_device(&class_dev, fw_name, device);	if (retval)		goto out;	/* Need to pin this module until class device is destroyed */	__module_get(THIS_MODULE);	fw_priv = class_get_devdata(class_dev);	fw_priv->fw = fw;	retval = sysfs_create_bin_file(&class_dev->kobj, &fw_priv->attr_data);	if (retval) {		printk(KERN_ERR "%s: sysfs_create_bin_file failed\n",		       __FUNCTION__);		goto error_unreg;	}	retval = class_device_create_file(class_dev,					  &class_device_attr_loading);	if (retval) {		printk(KERN_ERR "%s: class_device_create_file failed\n",		       __FUNCTION__);		goto error_unreg;	}	set_bit(FW_STATUS_READY, &fw_priv->status);	*class_dev_p = class_dev;	goto out;error_unreg:	class_device_unregister(class_dev);out:	return retval;}