linux-tegra.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH -next] clk: tegra: dfll: Use builtin_platform_driver to simplify the code
@ 2016-11-10 15:20 Wei Yongjun
  2016-11-10 22:08 ` Stephen Boyd
  0 siblings, 1 reply; 2+ messages in thread
From: Wei Yongjun @ 2016-11-10 15:20 UTC (permalink / raw)
  To: Peter De Schrijver, Prashant Gaikwad, Michael Turquette,
	Stephen Boyd, Stephen Warren, Thierry Reding, Alexandre Courbot
  Cc: Wei Yongjun, linux-clk-u79uwXL29TY76Z2rM5mHXA,
	linux-tegra-u79uwXL29TY76Z2rM5mHXA

From: Wei Yongjun <weiyongjun1-hv44wF8Li93QT0dZR+AlfA@public.gmane.org>

Use the builtin_platform_driver() macro to make the code simpler.

Signed-off-by: Wei Yongjun <weiyongjun1-hv44wF8Li93QT0dZR+AlfA@public.gmane.org>
---
 drivers/clk/tegra/clk-tegra124-dfll-fcpu.c | 7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)

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);

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH -next] clk: tegra: dfll: Use builtin_platform_driver to simplify the code
  2016-11-10 15:20 [PATCH -next] clk: tegra: dfll: Use builtin_platform_driver to simplify the code Wei Yongjun
@ 2016-11-10 22:08 ` Stephen Boyd
  0 siblings, 0 replies; 2+ messages in thread
From: Stephen Boyd @ 2016-11-10 22:08 UTC (permalink / raw)
  To: Wei Yongjun
  Cc: Peter De Schrijver, Prashant Gaikwad, Michael Turquette,
	Stephen Warren, Thierry Reding, Alexandre Courbot, Wei Yongjun,
	linux-clk, linux-tegra

On 11/10, Wei Yongjun wrote:
> From: Wei Yongjun <weiyongjun1@huawei.com>
> 
> Use the builtin_platform_driver() macro to make the code simpler.
> 
> Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
> ---

Applied to clk-next

-- 
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum,
a Linux Foundation Collaborative Project

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2016-11-10 22:08 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-11-10 15:20 [PATCH -next] clk: tegra: dfll: Use builtin_platform_driver to simplify the code Wei Yongjun
2016-11-10 22:08 ` Stephen Boyd

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).