From: Wei Yongjun Date: Thu, 10 Nov 2016 15:20:24 +0000 (+0000) Subject: clk: tegra: dfll: Use builtin_platform_driver to simplify the code X-Git-Tag: v5.15~12045^2~43 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6f877e79a7dbc13babd7da436cb0d25dd39f7a67;p=platform%2Fkernel%2Flinux-starfive.git clk: tegra: dfll: 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/tegra/clk-tegra124-dfll-fcpu.c b/drivers/clk/tegra/clk-tegra124-dfll-fcpu.c index 4301569..ad1c1cc 100644 --- a/drivers/clk/tegra/clk-tegra124-dfll-fcpu.c +++ b/drivers/clk/tegra/clk-tegra124-dfll-fcpu.c @@ -163,9 +163,4 @@ static struct platform_driver tegra124_dfll_fcpu_driver = { .pm = &tegra124_dfll_pm_ops, }, }; - -static int __init tegra124_dfll_fcpu_init(void) -{ - return platform_driver_register(&tegra124_dfll_fcpu_driver); -} -device_initcall(tegra124_dfll_fcpu_init); +builtin_platform_driver(tegra124_dfll_fcpu_driver);