sysfs: fix for thinko with sysfs_bin_attr_init()
authorStephen Rothwell <sfr@canb.auug.org.au>
Mon, 1 Mar 2010 09:38:36 +0000 (20:38 +1100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 8 Mar 2010 01:04:52 +0000 (17:04 -0800)
commit62e877b893e6350c900d381f353aa62ed48dcc97
treed2021f2c688207b1301ce016e7d7a73f77df8c11
parent0f4288ec6fcc1a47d1fa0241ec1c6dacd5a09e96
sysfs: fix for thinko with sysfs_bin_attr_init()

After merging the final tree, today's linux-next build (powerpc
allyesconfig) failed like this:

drivers/pci/pci-sysfs.c: In function 'pci_create_legacy_files':
drivers/pci/pci-sysfs.c:645: error: lvalue required as unary '&' operand
drivers/pci/pci-sysfs.c:658: error: lvalue required as unary '&' operand

Caused by commit "sysfs: Use sysfs_attr_init and sysfs_bin_attr_init on
dynamic attributes" interacting with commit "sysfs: Use one lockdep
class per sysfs attribute") both from the driver-core tree.

Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
Cc: "Eric W. Biederman" <ebiederm@xmission.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/pci/pci-sysfs.c
include/linux/sysfs.h