From: Wei Yongjun Date: Mon, 8 Aug 2016 13:55:20 +0000 (+0000) Subject: clk: gxbb: use builtin_platform_driver to simplify the code X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=00746f104420e79efb2dd30467a3546c790b30eb;p=linux-beck.git clk: gxbb: use builtin_platform_driver to simplify the code Use the builtin_platform_driver() macro to make the code simpler. Signed-off-by: Wei Yongjun Signed-off-by: Stephen Boyd --- diff --git a/drivers/clk/meson/gxbb.c b/drivers/clk/meson/gxbb.c index a4c6684b3019..a6afc3ecc2b9 100644 --- a/drivers/clk/meson/gxbb.c +++ b/drivers/clk/meson/gxbb.c @@ -937,8 +937,4 @@ static struct platform_driver gxbb_driver = { }, }; -static int __init gxbb_clkc_init(void) -{ - return platform_driver_register(&gxbb_driver); -} -device_initcall(gxbb_clkc_init); +builtin_platform_driver(gxbb_driver);