From: Haojian Zhuang Date: Wed, 23 Jan 2013 08:25:45 +0000 (+0800) Subject: gpio: pxa: set initcall level to module init X-Git-Tag: v3.9-rc1~76^2~12^2~9 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6c7e660a27da7494c670bfba21cfeba30457656c;p=profile%2Fivi%2Fkernel-x86-ivi.git gpio: pxa: set initcall level to module init gpio & pinctrl driver are used together. The pinctrl driver is already launched before gpio driver in Makefile. So set gpio driver to module init level. Otherwise, the sequence will be inverted. Signed-off-by: Haojian Zhuang Signed-off-by: Linus Walleij --- diff --git a/drivers/gpio/gpio-pxa.c b/drivers/gpio/gpio-pxa.c index 8325f58..9cc108d 100644 --- a/drivers/gpio/gpio-pxa.c +++ b/drivers/gpio/gpio-pxa.c @@ -642,12 +642,7 @@ static struct platform_driver pxa_gpio_driver = { .of_match_table = of_match_ptr(pxa_gpio_dt_ids), }, }; - -static int __init pxa_gpio_init(void) -{ - return platform_driver_register(&pxa_gpio_driver); -} -postcore_initcall(pxa_gpio_init); +module_platform_driver(pxa_gpio_driver); #ifdef CONFIG_PM static int pxa_gpio_suspend(void)