sysfs: Use sysfs_attr_init and sysfs_bin_attr_init on dynamic attributes
authorEric W. Biederman <ebiederm@xmission.com>
Thu, 11 Feb 2010 23:23:05 +0000 (15:23 -0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 8 Mar 2010 01:04:51 +0000 (17:04 -0800)
commita07e4156a2ee6359d31a44946d7ee7f85dbf6bca
tree1ab5ef1c8a0e9549b8e72af889ae0b5f5f660400
parent6992f5334995af474c2b58d010d08bc597f0f2fe
sysfs: Use sysfs_attr_init and sysfs_bin_attr_init on dynamic attributes

These are the non-static sysfs attributes that exist on
my test machine.  Fix them to use sysfs_attr_init or
sysfs_bin_attr_init as appropriate.   It simply requires
making a sysfs attribute present to see this.  So this
is a little bit tedious but otherwise not too bad.

Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
Acked-by: WANG Cong <xiyou.wangcong@gmail.com>
Cc: Tejun Heo <tj@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
arch/x86/kernel/cpu/mcheck/mce.c
drivers/acpi/system.c
drivers/pci/pci-sysfs.c
kernel/params.c