hwmon: (i5k_amb) Fix sysfs attribute for lockdep
authorKAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
Sun, 20 Jun 2010 07:22:31 +0000 (09:22 +0200)
committerJean Delvare <khali@linux-fr.org>
Sun, 20 Jun 2010 07:22:31 +0000 (09:22 +0200)
commit0e6c7870856c7fb4ee054d28ac253b2d3d0c7e36
tree2714660805f9ff6e7781c354ba3c4c6ee9cdb757
parenteefc2d9e3d4f8820f2c128a0e44a23de28b1ed64
hwmon: (i5k_amb) Fix sysfs attribute for lockdep

i5k_amb.ko uses dynamically allocated memory (by kmalloc) for
attributes passed to sysfs. So, sysfs_attr_init() should be called
for working happy with lockdep.

Signed-off-by: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
Signed-off-by: Jean Delvare <khali@linux-fr.org>
Cc: stable@kernel.org [2.6.34 only]
drivers/hwmon/i5k_amb.c