Anatolij Gustschin
3f5ec5e06d
drivers/rtc/rtc-ds1307.c: fix BUG shown with lock debugging enabled
Add struct bin_attribute initialization to fix the following bug:
rtc-ds1307 3-0068: rtc core: registered ds1307 as rtc0
BUG: key cfb14fcc not in .data!
------------[ cut here ]------------
WARNING: at kernel/lockdep.c:2986 sysfs_add_file_mode+0x84/0xdc()
Modules linked in:
[<c0018d94>] (unwind_backtrace+0x0/0xf8) from [<c0031f7c>] (warn_slowpath_common+0x4c/0x64)
[<c0031f7c>] (warn_slowpath_common+0x4c/0x64) from [<c0031fb0>] (warn_slowpath_null+0x1c/0x24)
[<c0031fb0>] (warn_slowpath_null+0x1c/0x24) from [<c012f7ac>] (sysfs_add_file_mode+0x84/0xdc)
[<c012f7ac>] (sysfs_add_file_mode+0x84/0xdc) from [<c04b11e4>] (ds1307_probe+0x5e4/0x6ac)
[<c04b11e4>] (ds1307_probe+0x5e4/0x6ac) from [<c036e600>] (i2c_device_probe+0xdc/0x108)
[<c036e600>] (i2c_device_probe+0xdc/0x108) from [<c02cdf84>] (driver_probe_device+0x90/0x210)
[<c02cdf84>] (driver_probe_device+0x90/0x210) from [<c02ce198>] (__driver_attach+0x94/0x98)
[<c02ce198>] (__driver_attach+0x94/0x98) from [<c02cc824>] (bus_for_each_dev+0x50/0x7c)
[<c02cc824>] (bus_for_each_dev+0x50/0x7c) from [<c02cd780>] (bus_add_driver+0x184/0x244)
[<c02cd780>] (bus_add_driver+0x184/0x244) from [<c02ce43c>] (driver_register+0x78/0x12c)
[<c02ce43c>] (driver_register+0x78/0x12c) from [<c03701ac>] (i2c_register_driver+0x2c/0xb4)
[<c03701ac>] (i2c_register_driver+0x2c/0xb4) from [<c0008798>] (do_one_initcall+0x34/0x178)
[<c0008798>] (do_one_initcall+0x34/0x178) from [<c0691860>] (kernel_init+0xdc/0x194)
[<c0691860>] (kernel_init+0xdc/0x194) from [<c0013cf0>] (kernel_thread_exit+0x0/0x8)
Since commit 6992f53349 ("sysfs: Use one lockdep class per sysfs
attribute") this initialization is required.
Reported-by: Stefano Babic <[email protected]>
Tested-by: Stefano Babic <[email protected]>
Signed-off-by: Anatolij Gustschin <[email protected]>
Cc: Alessandro Zummo <[email protected]>
Cc: Stefano Babic <[email protected]>
Cc: Eric W. Biederman <[email protected]>
Cc: Greg Kroah-Hartman <[email protected]>
Acked-by: Wolfram Sang <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
2012-04-25 21:26:34 -07:00
..
2011-12-05 16:53:43 -08:00
2012-03-15 18:23:10 -07:00
2012-03-27 16:41:24 -07:00
2012-03-23 16:58:40 -07:00
2012-04-05 15:30:34 -07:00
2010-09-22 17:22:39 -07:00
2012-01-13 20:43:32 -08:00
2011-06-10 14:55:36 +02:00
2011-11-28 22:50:39 +08:00
2012-03-27 16:47:35 -07:00
2012-01-10 16:30:53 -08:00
2012-03-23 16:58:39 -07:00
2012-01-10 16:30:53 -08:00
2012-03-23 16:58:39 -07:00
2012-03-23 16:58:39 -07:00
2012-03-23 16:58:40 -07:00
2012-03-23 16:58:39 -07:00
2011-06-01 19:29:39 -07:00
2012-01-10 16:30:53 -08:00
2012-01-10 16:30:53 -08:00
2010-10-29 19:06:53 +09:00
2012-03-23 16:58:39 -07:00
2012-04-25 21:26:34 -07:00
2012-03-23 16:58:39 -07:00
2012-03-23 16:58:39 -07:00
2012-03-23 16:58:39 -07:00
2012-03-23 16:58:39 -07:00
2012-03-23 16:58:39 -07:00
2012-01-10 16:30:53 -08:00
2012-03-23 16:58:39 -07:00
2012-03-23 16:58:39 -07:00
2012-04-12 13:12:12 -07:00
2012-03-23 16:58:39 -07:00
2011-08-10 15:54:24 -07:00
2012-03-23 16:58:39 -07:00
2011-09-14 18:09:37 -07:00
2012-03-23 16:58:39 -07:00
2012-03-23 16:58:39 -07:00
2012-01-10 16:30:53 -08:00
2011-08-26 17:26:35 -07:00
2012-03-23 16:58:39 -07:00
2012-03-23 16:58:39 -07:00
2012-03-23 16:58:39 -07:00
2012-03-23 16:58:39 -07:00
2012-03-23 16:58:39 -07:00
2012-01-10 16:30:53 -08:00
2012-01-10 16:30:53 -08:00
2012-01-10 16:30:53 -08:00
2012-03-23 16:58:39 -07:00
2012-03-23 16:58:39 -07:00
2012-03-23 16:58:39 -07:00
2012-01-10 16:30:53 -08:00
2012-01-10 16:30:53 -08:00
2012-03-29 14:16:48 -07:00
2012-03-23 16:58:39 -07:00
2011-05-06 18:02:03 -07:00
2012-03-28 12:34:33 -07:00
2012-01-10 16:30:52 -08:00
2012-03-23 16:58:39 -07:00
2012-03-23 16:58:39 -07:00
2011-05-06 18:02:04 -07:00
2012-03-23 16:58:39 -07:00
2012-03-23 16:58:39 -07:00
2012-03-23 16:58:39 -07:00
2012-01-10 16:30:53 -08:00
2012-03-23 17:36:29 -07:00
2012-04-12 13:12:12 -07:00
2012-03-23 16:58:39 -07:00
2011-03-09 11:25:04 -08:00
2012-01-10 10:29:42 +08:00
2012-03-23 16:58:39 -07:00
2012-04-12 13:12:12 -07:00
2011-05-06 18:02:05 -07:00
2010-10-27 15:30:32 +09:00
2012-03-23 16:58:39 -07:00
2012-03-23 16:58:39 -07:00
2012-03-23 16:58:39 -07:00
2012-03-23 16:58:39 -07:00
2012-03-23 16:58:39 -07:00
2012-04-12 13:12:12 -07:00
2012-03-23 16:58:39 -07:00
2012-03-29 18:02:10 -07:00
2012-03-23 16:58:39 -07:00
2012-03-23 16:58:39 -07:00
2012-03-23 16:58:39 -07:00
2012-01-10 16:30:53 -08:00
2011-07-25 20:57:17 -07:00
2011-03-09 11:25:07 -08:00
2011-05-17 14:44:36 -04:00
2012-04-12 13:12:12 -07:00
2012-03-23 16:58:39 -07:00
2012-01-10 16:30:53 -08:00
2012-03-23 16:58:39 -07:00
2012-01-10 16:30:53 -08:00
2012-01-10 16:30:53 -08:00
2012-01-10 16:30:53 -08:00
2012-03-23 16:58:39 -07:00