From: Paul Gortmaker Date: Wed, 3 Jun 2015 15:20:05 +0000 (-0400) Subject: drivers/clk: convert sunxi/clk-mod0.c to use builtin_platform_driver X-Git-Tag: v4.2-rc1~39^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=77459a0feca4ae8757a905fd1791f039479e8e1e;p=platform%2Fkernel%2Flinux-exynos.git drivers/clk: convert sunxi/clk-mod0.c to use builtin_platform_driver This driver builds based on obj-y and hence will not ever be modular. Change it to use the non-modular registration so that it won't suffer a compile fail once a header move places the modular registration within the module.h file. Cc: "Emilio López" Cc: Mike Turquette Cc: Stephen Boyd Acked-by: Stephen Boyd Cc: Maxime Ripard Acked-by: Maxime Ripard Cc: linux-clk@vger.kernel.org Cc: linux-arm-kernel@lists.infradead.org Signed-off-by: Paul Gortmaker --- diff --git a/drivers/clk/sunxi/clk-mod0.c b/drivers/clk/sunxi/clk-mod0.c index ec8f5a1..9d028ae 100644 --- a/drivers/clk/sunxi/clk-mod0.c +++ b/drivers/clk/sunxi/clk-mod0.c @@ -128,7 +128,7 @@ static struct platform_driver sun4i_a10_mod0_clk_driver = { }, .probe = sun4i_a10_mod0_clk_probe, }; -module_platform_driver(sun4i_a10_mod0_clk_driver); +builtin_platform_driver(sun4i_a10_mod0_clk_driver); static const struct factors_data sun9i_a80_mod0_data __initconst = { .enable = 31,