1
0
Files
linux/drivers/net
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-14 22:26:40 -07:00
2009-03-14 11:40:08 -07:00
2009-03-04 00:11:52 -08:00
2009-03-04 19:24:27 -08:00
2009-03-03 23:48:16 -08:00
2009-02-26 22:35:02 -08:00
2009-03-10 04:52:02 -07:00
2009-03-22 21:28:39 -07:00
2009-03-22 21:22:48 -07:00
2009-02-26 21:02:19 -08:00
2009-03-04 00:11:42 -08:00
2009-03-21 16:58:47 -07:00
2009-03-11 23:32:22 -07:00
2009-03-18 23:31:49 -07:00
2009-03-19 23:58:01 -07:00
2009-03-04 15:08:19 -08:00
2009-03-01 20:44:21 -08:00