clk: rockchip: drop module parts from rk3399 and rk3568 drivers
authorHeiko Stuebner <heiko@sntech.de>
Wed, 27 Oct 2021 13:26:16 +0000 (15:26 +0200)
committerStephen Boyd <sboyd@kernel.org>
Wed, 3 Nov 2021 00:59:00 +0000 (17:59 -0700)
Both of these drivers were converted to real drivers and got a tristate
build option. But them being builtin_platform_drivers, they only ever
should be build-in - as the name suggests.

So adapt the Kconfig symbol and drop the MODULE_* parts from the drivers.

Signed-off-by: Heiko Stuebner <heiko@sntech.de>
Link: https://lore.kernel.org/r/20211027132616.1039814-3-heiko@sntech.de
Reviewed-by: Stephen Boyd <sboyd@kernel.org>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
drivers/clk/rockchip/Kconfig
drivers/clk/rockchip/clk-rk3399.c
drivers/clk/rockchip/clk-rk3568.c

index 2dfd6a3833932489bea8c63bbeb7a3d46ab1220b..3067bdb6e1191684a74dc5abb8f9c7f688aa18a0 100644 (file)
@@ -80,14 +80,14 @@ config CLK_RK3368
          Build the driver for RK3368 Clock Driver.
 
 config CLK_RK3399
-       tristate "Rockchip RK3399 clock controller support"
+       bool "Rockchip RK3399 clock controller support"
        depends on ARM64 || COMPILE_TEST
        default y
        help
          Build the driver for RK3399 Clock Driver.
 
 config CLK_RK3568
-       tristate "Rockchip RK3568 clock controller support"
+       bool "Rockchip RK3568 clock controller support"
        depends on ARM64 || COMPILE_TEST
        default y
        help
index 53ed5cca335b4e1006089baa0c0ba044e14f34c3..306910a3a0d38451d3bcf9b54063236ec11e1dba 100644 (file)
@@ -1630,7 +1630,6 @@ static const struct of_device_id clk_rk3399_match_table[] = {
        },
        { }
 };
-MODULE_DEVICE_TABLE(of, clk_rk3399_match_table);
 
 static int __init clk_rk3399_probe(struct platform_device *pdev)
 {
@@ -1657,6 +1656,3 @@ static struct platform_driver clk_rk3399_driver = {
        },
 };
 builtin_platform_driver_probe(clk_rk3399_driver, clk_rk3399_probe);
-
-MODULE_DESCRIPTION("Rockchip RK3399 Clock Driver");
-MODULE_LICENSE("GPL");
index 75ca855e720df1d026c037664dfca3543d9e330e..69a9e8069a48641f7f1a4ed1bd05cfbd8d2a6fc5 100644 (file)
@@ -1693,7 +1693,6 @@ static const struct of_device_id clk_rk3568_match_table[] = {
        },
        { }
 };
-MODULE_DEVICE_TABLE(of, clk_rk3568_match_table);
 
 static int __init clk_rk3568_probe(struct platform_device *pdev)
 {
@@ -1720,6 +1719,3 @@ static struct platform_driver clk_rk3568_driver = {
        },
 };
 builtin_platform_driver_probe(clk_rk3568_driver, clk_rk3568_probe);
-
-MODULE_DESCRIPTION("Rockchip RK3568 Clock Driver");
-MODULE_LICENSE("GPL");