Skip to content

Commit

Permalink
clk: zx296718: use builtin_platform_driver to simplify the code
Browse files Browse the repository at this point in the history
Use the builtin_platform_driver() macro to make the code simpler.

Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
  • Loading branch information
Wei Yongjun authored and Stephen Boyd committed Sep 16, 2016
1 parent 5254223 commit faabbe5
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions drivers/clk/zte/clk-zx296718.c
Original file line number Diff line number Diff line change
Expand Up @@ -917,8 +917,4 @@ static struct platform_driver zx_clk_driver = {
},
};

static int __init zx_clkc_init(void)
{
return platform_driver_register(&zx_clk_driver);
}
device_initcall(zx_clkc_init);
builtin_platform_driver(zx_clk_driver);

0 comments on commit faabbe5

Please sign in to comment.