@@ -496,7 +496,7 @@ config COMMON_CLK_MT8183_VENCSYS
This driver supports MediaTek MT8183 vencsys clocks.
config COMMON_CLK_MT8192
- bool "Clock driver for MediaTek MT8192"
+ tristate "Clock driver for MediaTek MT8192"
depends on ARM64 || COMPILE_TEST
select COMMON_CLK_MEDIATEK
default ARM64
@@ -504,73 +504,73 @@ config COMMON_CLK_MT8192
This driver supports MediaTek MT8192 basic clocks.
config COMMON_CLK_MT8192_AUDSYS
- bool "Clock driver for MediaTek MT8192 audsys"
+ tristate "Clock driver for MediaTek MT8192 audsys"
depends on COMMON_CLK_MT8192
help
This driver supports MediaTek MT8192 audsys clocks.
config COMMON_CLK_MT8192_CAMSYS
- bool "Clock driver for MediaTek MT8192 camsys"
+ tristate "Clock driver for MediaTek MT8192 camsys"
depends on COMMON_CLK_MT8192
help
This driver supports MediaTek MT8192 camsys and camsys_raw clocks.
config COMMON_CLK_MT8192_IMGSYS
- bool "Clock driver for MediaTek MT8192 imgsys"
+ tristate "Clock driver for MediaTek MT8192 imgsys"
depends on COMMON_CLK_MT8192
help
This driver supports MediaTek MT8192 imgsys and imgsys2 clocks.
config COMMON_CLK_MT8192_IMP_IIC_WRAP
- bool "Clock driver for MediaTek MT8192 imp_iic_wrap"
+ tristate "Clock driver for MediaTek MT8192 imp_iic_wrap"
depends on COMMON_CLK_MT8192
help
This driver supports MediaTek MT8192 imp_iic_wrap clocks.
config COMMON_CLK_MT8192_IPESYS
- bool "Clock driver for MediaTek MT8192 ipesys"
+ tristate "Clock driver for MediaTek MT8192 ipesys"
depends on COMMON_CLK_MT8192
help
This driver supports MediaTek MT8192 ipesys clocks.
config COMMON_CLK_MT8192_MDPSYS
- bool "Clock driver for MediaTek MT8192 mdpsys"
+ tristate "Clock driver for MediaTek MT8192 mdpsys"
depends on COMMON_CLK_MT8192
help
This driver supports MediaTek MT8192 mdpsys clocks.
config COMMON_CLK_MT8192_MFGCFG
- bool "Clock driver for MediaTek MT8192 mfgcfg"
+ tristate "Clock driver for MediaTek MT8192 mfgcfg"
depends on COMMON_CLK_MT8192
help
This driver supports MediaTek MT8192 mfgcfg clocks.
config COMMON_CLK_MT8192_MMSYS
- bool "Clock driver for MediaTek MT8192 mmsys"
+ tristate "Clock driver for MediaTek MT8192 mmsys"
depends on COMMON_CLK_MT8192
help
This driver supports MediaTek MT8192 mmsys clocks.
config COMMON_CLK_MT8192_MSDC
- bool "Clock driver for MediaTek MT8192 msdc"
+ tristate "Clock driver for MediaTek MT8192 msdc"
depends on COMMON_CLK_MT8192
help
This driver supports MediaTek MT8192 msdc and msdc_top clocks.
config COMMON_CLK_MT8192_SCP_ADSP
- bool "Clock driver for MediaTek MT8192 scp_adsp"
+ tristate "Clock driver for MediaTek MT8192 scp_adsp"
depends on COMMON_CLK_MT8192
help
This driver supports MediaTek MT8192 scp_adsp clocks.
config COMMON_CLK_MT8192_VDECSYS
- bool "Clock driver for MediaTek MT8192 vdecsys"
+ tristate "Clock driver for MediaTek MT8192 vdecsys"
depends on COMMON_CLK_MT8192
help
This driver supports MediaTek MT8192 vdecsys and vdecsys_soc clocks.
config COMMON_CLK_MT8192_VENCSYS
- bool "Clock driver for MediaTek MT8192 vencsys"
+ tristate "Clock driver for MediaTek MT8192 vencsys"
depends on COMMON_CLK_MT8192
help
This driver supports MediaTek MT8192 vencsys clocks.
@@ -4,6 +4,7 @@
// Author: Chun-Jie Chen <chun-jie.chen@mediatek.com>
#include <linux/clk-provider.h>
+#include <linux/module.h>
#include <linux/of_platform.h>
#include <linux/platform_device.h>
@@ -115,4 +116,5 @@ static struct platform_driver clk_mt8192_aud_drv = {
},
};
-builtin_platform_driver(clk_mt8192_aud_drv);
+module_platform_driver(clk_mt8192_aud_drv);
+MODULE_LICENSE("GPL");
@@ -4,6 +4,7 @@
// Author: Chun-Jie Chen <chun-jie.chen@mediatek.com>
#include <linux/clk-provider.h>
+#include <linux/module.h>
#include <linux/of_device.h>
#include <linux/platform_device.h>
@@ -104,4 +105,5 @@ static struct platform_driver clk_mt8192_cam_drv = {
},
};
-builtin_platform_driver(clk_mt8192_cam_drv);
+module_platform_driver(clk_mt8192_cam_drv);
+MODULE_LICENSE("GPL");
@@ -4,6 +4,7 @@
// Author: Chun-Jie Chen <chun-jie.chen@mediatek.com>
#include <linux/clk-provider.h>
+#include <linux/module.h>
#include <linux/of_device.h>
#include <linux/platform_device.h>
@@ -67,4 +68,5 @@ static struct platform_driver clk_mt8192_img_drv = {
},
};
-builtin_platform_driver(clk_mt8192_img_drv);
+module_platform_driver(clk_mt8192_img_drv);
+MODULE_LICENSE("GPL");
@@ -4,6 +4,7 @@
// Author: Chun-Jie Chen <chun-jie.chen@mediatek.com>
#include <linux/clk-provider.h>
+#include <linux/module.h>
#include <linux/of_device.h>
#include <linux/platform_device.h>
@@ -116,4 +117,5 @@ static struct platform_driver clk_mt8192_imp_iic_wrap_drv = {
},
};
-builtin_platform_driver(clk_mt8192_imp_iic_wrap_drv);
+module_platform_driver(clk_mt8192_imp_iic_wrap_drv);
+MODULE_LICENSE("GPL");
@@ -4,6 +4,7 @@
// Author: Chun-Jie Chen <chun-jie.chen@mediatek.com>
#include <linux/clk-provider.h>
+#include <linux/module.h>
#include <linux/of_device.h>
#include <linux/platform_device.h>
@@ -54,4 +55,5 @@ static struct platform_driver clk_mt8192_ipe_drv = {
},
};
-builtin_platform_driver(clk_mt8192_ipe_drv);
+module_platform_driver(clk_mt8192_ipe_drv);
+MODULE_LICENSE("GPL");
@@ -4,6 +4,7 @@
// Author: Chun-Jie Chen <chun-jie.chen@mediatek.com>
#include <linux/clk-provider.h>
+#include <linux/module.h>
#include <linux/of_device.h>
#include <linux/platform_device.h>
@@ -79,4 +80,5 @@ static struct platform_driver clk_mt8192_mdp_drv = {
},
};
-builtin_platform_driver(clk_mt8192_mdp_drv);
+module_platform_driver(clk_mt8192_mdp_drv);
+MODULE_LICENSE("GPL");
@@ -4,6 +4,7 @@
// Author: Chun-Jie Chen <chun-jie.chen@mediatek.com>
#include <linux/clk-provider.h>
+#include <linux/module.h>
#include <linux/of_device.h>
#include <linux/platform_device.h>
@@ -47,4 +48,5 @@ static struct platform_driver clk_mt8192_mfg_drv = {
},
};
-builtin_platform_driver(clk_mt8192_mfg_drv);
+module_platform_driver(clk_mt8192_mfg_drv);
+MODULE_LICENSE("GPL");
@@ -4,6 +4,7 @@
// Author: Chun-Jie Chen <chun-jie.chen@mediatek.com>
#include <linux/clk-provider.h>
+#include <linux/module.h>
#include <linux/platform_device.h>
#include "clk-mtk.h"
@@ -105,4 +106,5 @@ static struct platform_driver clk_mt8192_mm_drv = {
},
};
-builtin_platform_driver(clk_mt8192_mm_drv);
+module_platform_driver(clk_mt8192_mm_drv);
+MODULE_LICENSE("GPL");
@@ -4,6 +4,7 @@
// Author: Chun-Jie Chen <chun-jie.chen@mediatek.com>
#include <linux/clk-provider.h>
+#include <linux/module.h>
#include <linux/of_device.h>
#include <linux/platform_device.h>
@@ -82,4 +83,5 @@ static struct platform_driver clk_mt8192_msdc_drv = {
},
};
-builtin_platform_driver(clk_mt8192_msdc_drv);
+module_platform_driver(clk_mt8192_msdc_drv);
+MODULE_LICENSE("GPL");
@@ -4,6 +4,7 @@
// Author: Chun-Jie Chen <chun-jie.chen@mediatek.com>
#include <linux/clk-provider.h>
+#include <linux/module.h>
#include <linux/of_device.h>
#include <linux/platform_device.h>
@@ -47,4 +48,5 @@ static struct platform_driver clk_mt8192_scp_adsp_drv = {
},
};
-builtin_platform_driver(clk_mt8192_scp_adsp_drv);
+module_platform_driver(clk_mt8192_scp_adsp_drv);
+MODULE_LICENSE("GPL");
@@ -4,6 +4,7 @@
// Author: Chun-Jie Chen <chun-jie.chen@mediatek.com>
#include <linux/clk-provider.h>
+#include <linux/module.h>
#include <linux/of_device.h>
#include <linux/platform_device.h>
@@ -91,4 +92,5 @@ static struct platform_driver clk_mt8192_vdec_drv = {
},
};
-builtin_platform_driver(clk_mt8192_vdec_drv);
+module_platform_driver(clk_mt8192_vdec_drv);
+MODULE_LICENSE("GPL");
@@ -4,6 +4,7 @@
// Author: Chun-Jie Chen <chun-jie.chen@mediatek.com>
#include <linux/clk-provider.h>
+#include <linux/module.h>
#include <linux/of_device.h>
#include <linux/platform_device.h>
@@ -50,4 +51,5 @@ static struct platform_driver clk_mt8192_venc_drv = {
},
};
-builtin_platform_driver(clk_mt8192_venc_drv);
+module_platform_driver(clk_mt8192_venc_drv);
+MODULE_LICENSE("GPL");
@@ -6,6 +6,7 @@
#include <linux/clk.h>
#include <linux/delay.h>
#include <linux/mfd/syscon.h>
+#include <linux/module.h>
#include <linux/of.h>
#include <linux/of_address.h>
#include <linux/of_device.h>
@@ -1313,3 +1314,4 @@ static int __init clk_mt8192_init(void)
}
arch_initcall(clk_mt8192_init);
+MODULE_LICENSE("GPL");
To support COMMON_CLK_MT8192* module build, add MODULE_LICENSE and include module.h. Cc: Chun-Jie Chen <chun-jie.chen@mediatek.com> Cc: Chen-Yu Tsai <wenst@chromium.org> Signed-off-by: Miles Chen <miles.chen@mediatek.com> --- drivers/clk/mediatek/Kconfig | 26 +++++++++---------- drivers/clk/mediatek/clk-mt8192-aud.c | 4 ++- drivers/clk/mediatek/clk-mt8192-cam.c | 4 ++- drivers/clk/mediatek/clk-mt8192-img.c | 4 ++- .../clk/mediatek/clk-mt8192-imp_iic_wrap.c | 4 ++- drivers/clk/mediatek/clk-mt8192-ipe.c | 4 ++- drivers/clk/mediatek/clk-mt8192-mdp.c | 4 ++- drivers/clk/mediatek/clk-mt8192-mfg.c | 4 ++- drivers/clk/mediatek/clk-mt8192-mm.c | 4 ++- drivers/clk/mediatek/clk-mt8192-msdc.c | 4 ++- drivers/clk/mediatek/clk-mt8192-scp_adsp.c | 4 ++- drivers/clk/mediatek/clk-mt8192-vdec.c | 4 ++- drivers/clk/mediatek/clk-mt8192-venc.c | 4 ++- drivers/clk/mediatek/clk-mt8192.c | 2 ++ 14 files changed, 51 insertions(+), 25 deletions(-)