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-01-06 17:20:52 +01:00
2009-02-25 20:28:22 +01:00
2009-03-05 16:10:58 +01:00
2009-02-25 20:28:22 +01:00
2009-01-06 17:20:55 +01:00
2009-01-06 17:20:52 +01:00
2009-02-02 20:12:23 +01:00
2009-01-06 17:20:52 +01:00
2009-01-19 13:46:56 +01:00
2008-11-27 12:38:11 +00:00
2008-11-09 21:35:36 +01:00
2009-03-05 16:10:57 +01:00
2009-01-14 19:19:04 +01:00
2008-07-23 19:55:57 +02:00
2009-02-25 20:28:22 +01:00
2009-01-06 17:20:52 +01:00
2008-11-02 21:40:08 +01:00
2009-03-05 16:10:58 +01:00
2008-12-28 20:00:03 +01:00
2009-03-05 16:10:58 +01:00
2009-01-06 17:20:52 +01:00
2009-01-06 17:21:01 +01:00
2008-10-26 09:35:05 -07:00
2009-01-06 17:20:52 +01:00
2009-01-06 17:20:52 +01:00
2009-01-14 19:19:03 +01:00
2009-01-06 17:20:52 +01:00
2009-01-06 17:20:52 +01:00
2009-01-06 17:20:52 +01:00