diff options
Diffstat (limited to 'drivers/base/firmware_class.c')
-rw-r--r-- | drivers/base/firmware_class.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/base/firmware_class.c b/drivers/base/firmware_class.c index d0dc26ad5387..985da11174e7 100644 --- a/drivers/base/firmware_class.c +++ b/drivers/base/firmware_class.c | |||
@@ -19,6 +19,7 @@ | |||
19 | #include <linux/kthread.h> | 19 | #include <linux/kthread.h> |
20 | #include <linux/highmem.h> | 20 | #include <linux/highmem.h> |
21 | #include <linux/firmware.h> | 21 | #include <linux/firmware.h> |
22 | #include <linux/slab.h> | ||
22 | 23 | ||
23 | #define to_dev(obj) container_of(obj, struct device, kobj) | 24 | #define to_dev(obj) container_of(obj, struct device, kobj) |
24 | 25 | ||
@@ -78,6 +79,7 @@ firmware_timeout_show(struct class *class, | |||
78 | /** | 79 | /** |
79 | * firmware_timeout_store - set number of seconds to wait for firmware | 80 | * firmware_timeout_store - set number of seconds to wait for firmware |
80 | * @class: device class pointer | 81 | * @class: device class pointer |
82 | * @attr: device attribute pointer | ||
81 | * @buf: buffer to scan for timeout value | 83 | * @buf: buffer to scan for timeout value |
82 | * @count: number of bytes in @buf | 84 | * @count: number of bytes in @buf |
83 | * | 85 | * |
@@ -442,6 +444,7 @@ static int fw_setup_device(struct firmware *fw, struct device **dev_p, | |||
442 | fw_priv = dev_get_drvdata(f_dev); | 444 | fw_priv = dev_get_drvdata(f_dev); |
443 | 445 | ||
444 | fw_priv->fw = fw; | 446 | fw_priv->fw = fw; |
447 | sysfs_bin_attr_init(&fw_priv->attr_data); | ||
445 | retval = sysfs_create_bin_file(&f_dev->kobj, &fw_priv->attr_data); | 448 | retval = sysfs_create_bin_file(&f_dev->kobj, &fw_priv->attr_data); |
446 | if (retval) { | 449 | if (retval) { |
447 | dev_err(device, "%s: sysfs_create_bin_file failed\n", __func__); | 450 | dev_err(device, "%s: sysfs_create_bin_file failed\n", __func__); |