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:
Tao Huang
2022-04-26 20:22:03 +08:00
parent 94b7ed76f1
commit 1a11b0aed4

View File

@@ -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 */