vpack270 and sleep mode
Lothar Waßmann
LW at KARO-electronics.de
Wed May 26 05:50:10 EDT 2010
Hi,
> static struct device_driver pxa2xx_flash_driver = {
^^^^^^^^^^^^1
> .name = "pxa2xx-flash",
> .bus = &platform_bus_type,
^^^^^^^^^^^^^^^^^^
This is WRONG!
platform drivers require a struct platform_driver and MUST be
registered using platform_driver_register()!
The platform suspend/resume expects the struct device_driver to be
embedded within a struct platform_driver.
See https://patchwork.kernel.org/patch/5894/
We should probably add some code to driver_register() to let it refuse
to register drivers with a 'platform_bus_type'.
Lothar Waßmann
--
___________________________________________________________
Ka-Ro electronics GmbH | Pascalstraße 22 | D - 52076 Aachen
Phone: +49 2408 1402-0 | Fax: +49 2408 1402-10
Geschäftsführer: Matthias Kaussen
Handelsregistereintrag: Amtsgericht Aachen, HRB 4996
www.karo-electronics.de | info at karo-electronics.de
___________________________________________________________
More information about the linux-arm-kernel
mailing list