]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
clk: mediatek: support COMMON_CLK_MT6779 module build
authorMiles Chen <miles.chen@mediatek.com>
Wed, 1 Sep 2021 22:25:26 +0000 (06:25 +0800)
committerStephen Boyd <sboyd@kernel.org>
Wed, 15 Sep 2021 01:20:21 +0000 (18:20 -0700)
To support COMMON_CLK_MT6779* module build,
add MODULE_LICENSE and export necessary symbols.

Cc: Stephen Boyd <sboyd@kernel.org>
Cc: Hanks Chen <hanks.chen@mediatek.com>
Cc: Wendell Lin <wendell.lin@mediatek.com>
Cc: Lee Jones <lee.jones@linaro.org>
Signed-off-by: Miles Chen <miles.chen@mediatek.com>
Link: https://lore.kernel.org/r/20210901222526.31065-4-miles.chen@mediatek.com
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
drivers/clk/mediatek/Kconfig
drivers/clk/mediatek/clk-mt6779-aud.c
drivers/clk/mediatek/clk-mt6779-cam.c
drivers/clk/mediatek/clk-mt6779-img.c
drivers/clk/mediatek/clk-mt6779-ipe.c
drivers/clk/mediatek/clk-mt6779-mfg.c
drivers/clk/mediatek/clk-mt6779-mm.c
drivers/clk/mediatek/clk-mt6779-vdec.c
drivers/clk/mediatek/clk-mt6779-venc.c
drivers/clk/mediatek/clk-mt6779.c

index 8eb9c8379f9adfcaebf3bac3d9113d852cb52a87..3ce6fb04d8ffe32b99b24b4b8b7ba115de31f0d5 100644 (file)
@@ -204,7 +204,7 @@ config COMMON_CLK_MT6765_MIPI2BSYS
          This driver supports MediaTek MT6765 mipi2bsys clocks.
 
 config COMMON_CLK_MT6779
-       bool "Clock driver for MediaTek MT6779"
+       tristate "Clock driver for MediaTek MT6779"
        depends on (ARCH_MEDIATEK && ARM64) || COMPILE_TEST
        select COMMON_CLK_MEDIATEK
        default ARCH_MEDIATEK && ARM64
@@ -212,49 +212,49 @@ config COMMON_CLK_MT6779
          This driver supports MediaTek MT6779 basic clocks.
 
 config COMMON_CLK_MT6779_MMSYS
-       bool "Clock driver for MediaTek MT6779 mmsys"
+       tristate "Clock driver for MediaTek MT6779 mmsys"
        depends on COMMON_CLK_MT6779
        help
          This driver supports MediaTek MT6779 mmsys clocks.
 
 config COMMON_CLK_MT6779_IMGSYS
-       bool "Clock driver for MediaTek MT6779 imgsys"
+       tristate "Clock driver for MediaTek MT6779 imgsys"
        depends on COMMON_CLK_MT6779
        help
          This driver supports MediaTek MT6779 imgsys clocks.
 
 config COMMON_CLK_MT6779_IPESYS
-       bool "Clock driver for MediaTek MT6779 ipesys"
+       tristate "Clock driver for MediaTek MT6779 ipesys"
        depends on COMMON_CLK_MT6779
        help
          This driver supports MediaTek MT6779 ipesys clocks.
 
 config COMMON_CLK_MT6779_CAMSYS
-       bool "Clock driver for MediaTek MT6779 camsys"
+       tristate "Clock driver for MediaTek MT6779 camsys"
        depends on COMMON_CLK_MT6779
        help
          This driver supports MediaTek MT6779 camsys clocks.
 
 config COMMON_CLK_MT6779_VDECSYS
-       bool "Clock driver for MediaTek MT6779 vdecsys"
+       tristate "Clock driver for MediaTek MT6779 vdecsys"
        depends on COMMON_CLK_MT6779
        help
          This driver supports MediaTek MT6779 vdecsys clocks.
 
 config COMMON_CLK_MT6779_VENCSYS
-       bool "Clock driver for MediaTek MT6779 vencsys"
+       tristate "Clock driver for MediaTek MT6779 vencsys"
        depends on COMMON_CLK_MT6779
        help
          This driver supports MediaTek MT6779 vencsys clocks.
 
 config COMMON_CLK_MT6779_MFGCFG
-       bool "Clock driver for MediaTek MT6779 mfgcfg"
+       tristate "Clock driver for MediaTek MT6779 mfgcfg"
        depends on COMMON_CLK_MT6779
        help
          This driver supports MediaTek MT6779 mfgcfg clocks.
 
 config COMMON_CLK_MT6779_AUDSYS
-       bool "Clock driver for Mediatek MT6779 audsys"
+       tristate "Clock driver for Mediatek MT6779 audsys"
        depends on COMMON_CLK_MT6779
        help
          This driver supports Mediatek MT6779 audsys clocks.
index 11b209f95e2547dd39de0288f50098be363850de..9e889e4c361a6d46f5af47ea6bbf83c9b14c2223 100644 (file)
@@ -4,6 +4,7 @@
  * Author: Wendell Lin <wendell.lin@mediatek.com>
  */
 
+#include <linux/module.h>
 #include <linux/clk-provider.h>
 #include <linux/of.h>
 #include <linux/of_address.h>
@@ -114,4 +115,5 @@ static struct platform_driver clk_mt6779_aud_drv = {
        },
 };
 
-builtin_platform_driver(clk_mt6779_aud_drv);
+module_platform_driver(clk_mt6779_aud_drv);
+MODULE_LICENSE("GPL");
index 244d4208b7fb3e715f2c7b61ca084104156d6731..7f07a2a139acf4b1abac0a0e7467d35aa0b9fb81 100644 (file)
@@ -4,6 +4,7 @@
  * Author: Wendell Lin <wendell.lin@mediatek.com>
  */
 
+#include <linux/module.h>
 #include <linux/clk-provider.h>
 #include <linux/platform_device.h>
 #include <dt-bindings/clock/mt6779-clk.h>
@@ -63,4 +64,5 @@ static struct platform_driver clk_mt6779_cam_drv = {
        },
 };
 
-builtin_platform_driver(clk_mt6779_cam_drv);
+module_platform_driver(clk_mt6779_cam_drv);
+MODULE_LICENSE("GPL");
index 26292a45c6133b46fc0d0450b786f6e89fb9a543..f0961fa1a28649d7c53c71ffe1214cd3564cc1f8 100644 (file)
@@ -4,6 +4,7 @@
  * Author: Wendell Lin <wendell.lin@mediatek.com>
  */
 
+#include <linux/module.h>
 #include <linux/clk-provider.h>
 #include <linux/platform_device.h>
 #include <dt-bindings/clock/mt6779-clk.h>
@@ -55,4 +56,5 @@ static struct platform_driver clk_mt6779_img_drv = {
        },
 };
 
-builtin_platform_driver(clk_mt6779_img_drv);
+module_platform_driver(clk_mt6779_img_drv);
+MODULE_LICENSE("GPL");
index bb519075639cb8f40196ed48d665632cde0264ba..8c6f3e154bf35506b7826df1ea2626179534f62f 100644 (file)
@@ -4,6 +4,7 @@
  * Author: Wendell Lin <wendell.lin@mediatek.com>
  */
 
+#include <linux/module.h>
 #include <linux/clk-provider.h>
 #include <linux/platform_device.h>
 #include <dt-bindings/clock/mt6779-clk.h>
@@ -57,4 +58,5 @@ static struct platform_driver clk_mt6779_ipe_drv = {
        },
 };
 
-builtin_platform_driver(clk_mt6779_ipe_drv);
+module_platform_driver(clk_mt6779_ipe_drv);
+MODULE_LICENSE("GPL");
index c6ee2a89c0707739ba27be99f092916fff0e5a42..9f3372886e6b41921c6e0f0399b7d6d736d935cd 100644 (file)
@@ -4,6 +4,7 @@
  * Author: Wendell Lin <wendell.lin@mediatek.com>
  */
 
+#include <linux/module.h>
 #include <linux/clk-provider.h>
 #include <linux/platform_device.h>
 
@@ -52,4 +53,5 @@ static struct platform_driver clk_mt6779_mfg_drv = {
        },
 };
 
-builtin_platform_driver(clk_mt6779_mfg_drv);
+module_platform_driver(clk_mt6779_mfg_drv);
+MODULE_LICENSE("GPL");
index 059c1a41ac7a104ccd0c114567c337db2e7c0d11..33946e6471227e881f30cf746e31feb4948d3395 100644 (file)
@@ -4,6 +4,7 @@
  * Author: Wendell Lin <wendell.lin@mediatek.com>
  */
 
+#include <linux/module.h>
 #include <linux/clk-provider.h>
 #include <linux/platform_device.h>
 #include <dt-bindings/clock/mt6779-clk.h>
@@ -105,4 +106,5 @@ static struct platform_driver clk_mt6779_mm_drv = {
        },
 };
 
-builtin_platform_driver(clk_mt6779_mm_drv);
+module_platform_driver(clk_mt6779_mm_drv);
+MODULE_LICENSE("GPL");
index 1900da2586a19b43c24633aa5f3f67bf26dc6122..f4358844c2e08659440c483203566bb0c18ec3e5 100644 (file)
@@ -4,6 +4,7 @@
  * Author: Wendell Lin <wendell.lin@mediatek.com>
  */
 
+#include <linux/module.h>
 #include <linux/clk-provider.h>
 #include <linux/platform_device.h>
 
@@ -64,4 +65,5 @@ static struct platform_driver clk_mt6779_vdec_drv = {
        },
 };
 
-builtin_platform_driver(clk_mt6779_vdec_drv);
+module_platform_driver(clk_mt6779_vdec_drv);
+MODULE_LICENSE("GPL");
index b41d1f859edc9d607c724e41487c2dd484cc3fee..ff67084af5aa11393dafcef50ddce90d3b875c02 100644 (file)
@@ -4,6 +4,7 @@
  * Author: Wendell Lin <wendell.lin@mediatek.com>
  */
 
+#include <linux/module.h>
 #include <linux/clk-provider.h>
 #include <linux/platform_device.h>
 
@@ -55,4 +56,5 @@ static struct platform_driver clk_mt6779_venc_drv = {
        },
 };
 
-builtin_platform_driver(clk_mt6779_venc_drv);
+module_platform_driver(clk_mt6779_venc_drv);
+MODULE_LICENSE("GPL");
index 6e0d3a1667291352f5c5750f6cb28cfe1c4caec7..9825385c9f9441040f2e56115085b24dcac3a616 100644 (file)
@@ -4,6 +4,7 @@
  * Author: Wendell Lin <wendell.lin@mediatek.com>
  */
 
+#include <linux/module.h>
 #include <linux/of.h>
 #include <linux/of_address.h>
 #include <linux/of_device.h>
@@ -1314,3 +1315,4 @@ static int __init clk_mt6779_init(void)
 }
 
 arch_initcall(clk_mt6779_init);
+MODULE_LICENSE("GPL");