original_kernel/drivers/mtd/nand
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
Makefile
alauda.c
ams-delta.c
atmel_nand.c
atmel_nand_ecc.h
au1550nd.c
autcpu12.c
bf5xx_nand.c
cafe_nand.c
cmx270_nand.c
cs553x_nand.c
diskonchip.c
edb7312.c
excite_nandflash.c
fsl_elbc_nand.c
fsl_upm.c
gpio.c
h1910.c
mxc_nand.c
nand_base.c
nand_bbt.c
nand_ecc.c
nand_ids.c
nandsim.c
ndfc.c
orion_nand.c
pasemi_nand.c
plat_nand.c
ppchameleonevb.c
pxa3xx_nand.c
rtc_from4.c
s3c2410.c
sh_flctl.c
sharpsl.c
spia.c
tmio_nand.c
ts7250.c