From 6a256321b839534cb3da4b8ffc06c126871a78e3 Mon Sep 17 00:00:00 2001 From: Alexander Shiyan Date: Tue, 12 Feb 2013 22:08:57 +0400 Subject: Use new device_platform_driver() macro for drivers Signed-off-by: Alexander Shiyan Signed-off-by: Sascha Hauer --- drivers/video/pxa.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'drivers/video/pxa.c') diff --git a/drivers/video/pxa.c b/drivers/video/pxa.c index cec9d147d2..529190baec 100644 --- a/drivers/video/pxa.c +++ b/drivers/video/pxa.c @@ -545,10 +545,4 @@ static struct driver_d pxafb_driver = { .probe = pxafb_probe, .remove = pxafb_remove, }; - -static int pxafb_init(void) -{ - return platform_driver_register(&pxafb_driver); -} - -device_initcall(pxafb_init); +device_platform_driver(pxafb_driver); -- cgit v1.2.3