From c0fed5666adf293bedc8b198f3f006e0fe4ec340 Mon Sep 17 00:00:00 2001 From: Sebastian Hesselbarth Date: Wed, 15 Apr 2015 00:53:20 +0200 Subject: gpio: orion: Convert to platform_driver With support for deferred probing, we can now relax driver registration for Marvell Orion GPIO driver from postcore_initcall() to normal platform_driver. Signed-off-by: Sebastian Hesselbarth Signed-off-by: Sascha Hauer --- drivers/gpio/gpio-orion.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'drivers/gpio') diff --git a/drivers/gpio/gpio-orion.c b/drivers/gpio/gpio-orion.c index 855763ea66..3deeac126f 100644 --- a/drivers/gpio/gpio-orion.c +++ b/drivers/gpio/gpio-orion.c @@ -124,9 +124,4 @@ static struct driver_d orion_gpio_driver = { .probe = orion_gpio_probe, .of_compatible = DRV_OF_COMPAT(orion_gpio_dt_ids), }; - -static int orion_gpio_init(void) -{ - return platform_driver_register(&orion_gpio_driver); -} -postcore_initcall(orion_gpio_init); +device_platform_driver(orion_gpio_driver); -- cgit v1.2.3