mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-08 03:40:35 +09:00
clk: rockchip: rv1106: Support driver probe only when build as module
before: text data bss dec hex filename 6301 23000 8 29309 727d drivers/clk/rockchip/clk-rv1106.o after: text data bss dec hex filename 5483 22892 8 28383 6edf drivers/clk/rockchip/clk-rv1106.o Signed-off-by: Tao Huang <huangtao@rock-chips.com> Change-Id: Ibb023c4353fa3bbd85b15d415c46d70774f4fcca
This commit is contained in:
@@ -1064,6 +1064,7 @@ static void __init rv1106_grf_clk_init(struct device_node *np)
|
||||
}
|
||||
CLK_OF_DECLARE(rv1106_grf_cru, "rockchip,rv1106-grf-cru", rv1106_grf_clk_init);
|
||||
|
||||
#ifdef MODULE
|
||||
struct clk_rv1106_inits {
|
||||
void (*inits)(struct device_node *np);
|
||||
};
|
||||
@@ -1115,3 +1116,4 @@ builtin_platform_driver_probe(clk_rv1106_driver, clk_rv1106_probe);
|
||||
|
||||
MODULE_DESCRIPTION("Rockchip RV1106 Clock Driver");
|
||||
MODULE_LICENSE("GPL");
|
||||
#endif /* MODULE */
|
||||
|
||||
Reference in New Issue
Block a user