linux/drivers/mtd/onenand
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
..
Kconfig [MTD] [OneNAND] Add OMAP2 / OMAP3 OneNAND driver 2008-08-12 11:07:37 +01:00
Makefile [MTD] [OneNAND] Add OMAP2 / OMAP3 OneNAND driver 2008-08-12 11:07:37 +01:00
generic.c platform driver: fix incorrect use of 'platform_bus_type' with 'struct device_driver' 2009-03-24 16:38:25 -07:00
omap2.c ARM: OMAP: Fix gpio by switching to generic gpio calls, v2 2009-01-15 13:09:52 +02:00
onenand_base.c [MTD] update internal API to support 64-bit device size 2008-12-10 13:37:21 +00:00
onenand_bbt.c [MTD] [OneNAND] proper onenand_bbt_read_oob() prototype 2008-04-22 15:59:13 +01:00
onenand_sim.c [MTD] [OneNAND] Fix wrong free the static address in onenand_sim 2007-10-22 09:57:28 +01:00