hwmon: (applesmc) Properly initialize lockdep attributes
authorHenrik Rydberg <rydberg@euromail.se>
Sat, 22 Jan 2011 19:55:39 +0000 (20:55 +0100)
committerGuenter Roeck <guenter.roeck@ericsson.com>
Sun, 23 Jan 2011 17:28:50 +0000 (09:28 -0800)
The switch to dynamically allocated sysfs attributes left the
internal lockdep members uninitialized, causing a formal bug.
This patch adds sysfs_attr_init() to the node creation function,
remedying the problem.

Reported-and-tested-by: Stefan Richter <stefanr@s5r6.in-berlin.de>
Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
Signed-off-by: Guenter Roeck <guenter.roeck@ericsson.com>

No differences found