Ming Lei
7a192ec334
platform driver: fix incorrect use of 'platform_bus_type' with 'struct device_driver'
...
This patch fixes the bug reported in
http://bugzilla.kernel.org/show_bug.cgi?id=11681 .
"Lots of device drivers register a 'struct device_driver' with
the '.bus' member set to '&platform_bus_type'. This is wrong,
since the platform_bus functions expect the 'struct device_driver'
to be wrapped up in a 'struct platform_driver' which provides
some additional callbacks (like suspend_late, resume_early).
The effect may be that platform_suspend_late() uses bogus data
outside the device_driver struct as a pointer pointer to the
device driver's suspend_late() function or other hard to
reproduce failures."(Lothar Wassmann)
Signed-off-by: Ming Lei <tom.leiming@gmail.com>
Acked-by: Henrique de Moraes Holschuh <hmh@hmh.eng.br>
Acked-by: David Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2009-03-24 16:38:25 -07:00
..
2009-03-22 11:08:53 -07:00
2009-02-05 12:56:48 -08:00
2009-01-12 20:56:43 +01:00
2008-10-16 09:24:45 -07:00
2009-02-11 14:25:34 -08:00
2009-03-10 15:55:12 -07:00
2009-01-26 21:19:52 +01:00
2009-03-16 07:55:37 -07:00
2008-10-16 11:21:45 -07:00
2008-12-10 08:01:54 -08:00
2009-01-26 21:19:52 +01:00
2009-01-24 11:41:16 +00:00
2008-08-07 09:55:48 +01:00
2009-01-26 21:19:52 +01:00
2008-07-24 10:47:37 -07:00
2008-08-23 12:14:12 -07:00
2009-01-06 15:59:26 -08:00
2008-08-07 09:55:48 +01:00
2009-01-08 16:29:41 +00:00
2009-01-12 20:56:32 +01:00
2008-08-23 12:14:12 -07:00
2009-02-22 09:23:02 -08:00
2008-11-19 18:49:57 -08:00
2009-03-24 16:38:25 -07:00
2009-03-24 16:38:25 -07:00
2009-01-15 16:39:35 -08:00
2009-02-11 14:25:35 -08:00
2008-08-31 01:23:17 -07:00
2009-01-12 20:56:31 +01:00
2009-01-12 20:56:31 +01:00
2009-01-12 20:56:32 +01:00
2009-01-12 20:56:32 +01:00
2008-07-24 10:47:34 -07:00
2009-01-06 15:59:26 -08:00
2008-07-24 10:47:34 -07:00
2008-08-31 01:23:17 -07:00
2008-10-10 12:12:41 -07:00
2008-08-31 01:23:17 -07:00
2008-11-19 18:49:59 -08:00
2008-08-07 09:55:48 +01:00
2008-07-24 10:47:40 -07:00
2008-12-21 14:21:16 +11:00
2009-01-06 15:59:26 -08:00
2008-05-18 13:28:49 -07:00
2008-10-16 11:21:44 -07:00
2008-08-07 09:55:48 +01:00
2008-07-14 22:38:28 +02:00
2008-12-22 18:44:48 +09:00
2009-02-05 12:56:46 -08:00
2009-02-05 12:56:46 -08:00
2008-10-16 11:21:44 -07:00
2008-08-31 01:23:17 -07:00
2008-08-15 08:35:43 -07:00
2009-01-06 15:59:26 -08:00
2009-01-06 15:59:26 -08:00
2008-07-24 10:47:39 -07:00
2008-07-30 02:16:12 +09:00
2008-05-18 13:28:50 -07:00
2008-12-16 15:43:50 +01:00
2009-02-18 15:37:56 -08:00
2008-10-10 12:13:22 -07:00
2008-12-28 20:00:05 +01:00
2009-01-26 10:13:08 -08:00
2008-10-15 10:19:51 -07:00
2009-01-06 15:59:26 -08:00
2009-01-21 10:32:34 -07:00
2009-01-06 15:59:27 -08:00
2008-07-22 10:39:36 +10:00
2009-01-06 10:44:35 -08:00
2008-08-31 01:23:17 -07:00
2008-06-09 13:46:38 +10:00
2008-08-20 15:40:31 -07:00
2009-01-06 15:59:27 -08:00
2009-03-24 16:38:21 -07:00
2009-03-24 16:38:21 -07:00
2009-03-24 16:38:21 -07:00
2008-07-29 22:10:01 +09:00
2009-03-03 21:04:04 +00:00
2008-12-29 18:00:04 +08:00
2008-10-16 11:21:45 -07:00
2008-08-07 09:55:48 +01:00
2008-05-24 09:56:13 -07:00
2008-08-23 12:14:12 -07:00
2008-11-27 12:37:59 +00:00
2008-07-24 10:47:37 -07:00
2008-05-08 21:37:30 -07:00
2008-05-08 21:37:30 -07:00
2008-07-10 18:55:40 +02:00
2008-12-22 18:42:54 +09:00
2009-03-24 16:38:21 -07:00
2008-07-24 10:47:39 -07:00
2009-01-06 15:59:27 -08:00
2008-07-26 12:00:12 -07:00
2008-07-26 12:00:12 -07:00
2008-05-08 21:37:30 -07:00
2008-05-08 21:37:30 -07:00
2008-08-31 01:23:17 -07:00
2008-10-16 11:21:42 -07:00
2009-03-24 16:38:21 -07:00
2008-07-24 10:47:36 -07:00
2008-10-16 11:21:44 -07:00
2008-07-24 10:47:39 -07:00
2008-10-16 11:21:42 -07:00
2008-08-23 12:14:12 -07:00
2008-07-04 10:40:08 -07:00
2008-11-30 10:03:38 -08:00
2008-11-14 09:59:48 -07:00