@@ -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>
@@ -115,3 +116,4 @@ static struct platform_driver clk_mt6779_aud_drv = {
};
builtin_platform_driver(clk_mt6779_aud_drv);
+MODULE_LICENSE("GPL");
@@ -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>
@@ -64,3 +65,4 @@ static struct platform_driver clk_mt6779_cam_drv = {
};
builtin_platform_driver(clk_mt6779_cam_drv);
+MODULE_LICENSE("GPL");
@@ -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>
@@ -56,3 +57,4 @@ static struct platform_driver clk_mt6779_img_drv = {
};
builtin_platform_driver(clk_mt6779_img_drv);
+MODULE_LICENSE("GPL");
@@ -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>
@@ -58,3 +59,4 @@ static struct platform_driver clk_mt6779_ipe_drv = {
};
builtin_platform_driver(clk_mt6779_ipe_drv);
+MODULE_LICENSE("GPL");
@@ -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>
@@ -53,3 +54,4 @@ static struct platform_driver clk_mt6779_mfg_drv = {
};
builtin_platform_driver(clk_mt6779_mfg_drv);
+MODULE_LICENSE("GPL");
@@ -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>
@@ -106,3 +107,4 @@ static struct platform_driver clk_mt6779_mm_drv = {
};
builtin_platform_driver(clk_mt6779_mm_drv);
+MODULE_LICENSE("GPL");
@@ -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>
@@ -65,3 +66,4 @@ static struct platform_driver clk_mt6779_vdec_drv = {
};
builtin_platform_driver(clk_mt6779_vdec_drv);
+MODULE_LICENSE("GPL");
@@ -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>
@@ -56,3 +57,4 @@ static struct platform_driver clk_mt6779_venc_drv = {
};
builtin_platform_driver(clk_mt6779_venc_drv);
+MODULE_LICENSE("GPL");
@@ -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");
To support COMMON_CLK_MT6779* module build, add MODULE_LICENSE and export necessary symbols. Signed-off-by: Miles Chen <miles.chen@mediatek.com> --- drivers/clk/mediatek/clk-mt6779-aud.c | 2 ++ drivers/clk/mediatek/clk-mt6779-cam.c | 2 ++ drivers/clk/mediatek/clk-mt6779-img.c | 2 ++ drivers/clk/mediatek/clk-mt6779-ipe.c | 2 ++ drivers/clk/mediatek/clk-mt6779-mfg.c | 2 ++ drivers/clk/mediatek/clk-mt6779-mm.c | 2 ++ drivers/clk/mediatek/clk-mt6779-vdec.c | 2 ++ drivers/clk/mediatek/clk-mt6779-venc.c | 2 ++ drivers/clk/mediatek/clk-mt6779.c | 2 ++ 9 files changed, 18 insertions(+)