Message ID | 1470664520-9604-1-git-send-email-weiyj.lk@gmail.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
On 08/08, Wei Yongjun wrote: > Use the builtin_platform_driver() macro to make the code simpler. > > Signed-off-by: Wei Yongjun <weiyj.lk@gmail.com> > --- Applied to clk-next
diff --git a/drivers/clk/meson/gxbb.c b/drivers/clk/meson/gxbb.c index 8e36d22..b736277 100644 --- a/drivers/clk/meson/gxbb.c +++ b/drivers/clk/meson/gxbb.c @@ -946,8 +946,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);
Use the builtin_platform_driver() macro to make the code simpler. Signed-off-by: Wei Yongjun <weiyj.lk@gmail.com> --- drivers/clk/meson/gxbb.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-)