diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2010-03-19 16:39:42 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2010-03-19 16:39:42 -0400 |
commit | 2eb645e7b5662da47646f76b41b4141f2c9bf13a (patch) | |
tree | b5b99f8111a72a81d085cc3e3acca706de43062e /drivers/base/firmware_class.c | |
parent | 8fdb7e9f612b7c6ba6c3ba460c14263b5ce90f79 (diff) | |
parent | 12ee3c0a0ac42bed0939420468fd35f5cdceae4f (diff) |
Merge git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core-2.6
* git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core-2.6:
driver core: numa: fix BUILD_BUG_ON for node_read_distance
driver-core: document ERR_PTR() return values
kobject: documentation: Update to refer to kset-example.c.
sysdev: the cpu probe/release attributes should be sysdev_class_attributes
kobject: documentation: Fix erroneous example in kobject doc.
driver-core: fix missing kernel-doc in firmware_class
Driver core: Early platform kernel-doc update
sysfs: fix sysfs lockdep warning in mlx4 code
sysfs: fix sysfs lockdep warning in infiniband code
sysfs: fix sysfs lockdep warning in ipmi code
sysfs: Initialised pci bus legacy_mem field before use
sysfs: use sysfs_bin_attr_init in firmware class driver
Diffstat (limited to 'drivers/base/firmware_class.c')
-rw-r--r-- | drivers/base/firmware_class.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/base/firmware_class.c b/drivers/base/firmware_class.c index d0dc26ad5387..18518ba13c81 100644 --- a/drivers/base/firmware_class.c +++ b/drivers/base/firmware_class.c | |||
@@ -78,6 +78,7 @@ firmware_timeout_show(struct class *class, | |||
78 | /** | 78 | /** |
79 | * firmware_timeout_store - set number of seconds to wait for firmware | 79 | * firmware_timeout_store - set number of seconds to wait for firmware |
80 | * @class: device class pointer | 80 | * @class: device class pointer |
81 | * @attr: device attribute pointer | ||
81 | * @buf: buffer to scan for timeout value | 82 | * @buf: buffer to scan for timeout value |
82 | * @count: number of bytes in @buf | 83 | * @count: number of bytes in @buf |
83 | * | 84 | * |
@@ -442,6 +443,7 @@ static int fw_setup_device(struct firmware *fw, struct device **dev_p, | |||
442 | fw_priv = dev_get_drvdata(f_dev); | 443 | fw_priv = dev_get_drvdata(f_dev); |
443 | 444 | ||
444 | fw_priv->fw = fw; | 445 | fw_priv->fw = fw; |
446 | sysfs_bin_attr_init(&fw_priv->attr_data); | ||
445 | retval = sysfs_create_bin_file(&f_dev->kobj, &fw_priv->attr_data); | 447 | retval = sysfs_create_bin_file(&f_dev->kobj, &fw_priv->attr_data); |
446 | if (retval) { | 448 | if (retval) { |
447 | dev_err(device, "%s: sysfs_create_bin_file failed\n", __func__); | 449 | dev_err(device, "%s: sysfs_create_bin_file failed\n", __func__); |