drivers/rtc/rtc-pcf2123.c: initialize dynamic sysfs attributes
authorIlya Shchepetkov <shchepetkov@ispras.ru>
Tue, 21 Aug 2012 23:16:06 +0000 (16:16 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 21 Aug 2012 23:45:03 +0000 (16:45 -0700)
commit5ed12f12825c6c0451d703bfe918a7fc190e2738
tree63da97b6e829ae1ded87014e4a15af0bc52daadf
parentc81758fbe0fdbbc0c74b37798f55bd9c91d5c068
drivers/rtc/rtc-pcf2123.c: initialize dynamic sysfs attributes

Dynamically allocated sysfs attributes must be initialized using
sysfs_attr_init(), otherwise lockdep complains: BUG: key <address> not in
.data!

Found by Linux Driver Verification project (linuxtesting.org).

Signed-off-by: Ilya Shchepetkov <shchepetkov@ispras.ru>
Cc: Chris Verges <chrisv@cyberswitching.com>
Cc: Christian Pellegrin <chripell@fsfe.org>
Cc: Alessandro Zummo <a.zummo@towertech.it>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/rtc/rtc-pcf2123.c