Skip to content

Commit f09b946

Browse files
milesdotchenbebarino
authored andcommitted
clk: mediatek: support COMMON_CLK_MT6779 module build
To support COMMON_CLK_MT6779* module build, add MODULE_LICENSE and export necessary symbols. Cc: Stephen Boyd <[email protected]> Cc: Hanks Chen <[email protected]> Cc: Wendell Lin <[email protected]> Cc: Lee Jones <[email protected]> Signed-off-by: Miles Chen <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Stephen Boyd <[email protected]>
1 parent 32b028f commit f09b946

File tree

10 files changed

+35
-17
lines changed

10 files changed

+35
-17
lines changed

drivers/clk/mediatek/Kconfig

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -204,57 +204,57 @@ config COMMON_CLK_MT6765_MIPI2BSYS
204204
This driver supports MediaTek MT6765 mipi2bsys clocks.
205205

206206
config COMMON_CLK_MT6779
207-
bool "Clock driver for MediaTek MT6779"
207+
tristate "Clock driver for MediaTek MT6779"
208208
depends on (ARCH_MEDIATEK && ARM64) || COMPILE_TEST
209209
select COMMON_CLK_MEDIATEK
210210
default ARCH_MEDIATEK && ARM64
211211
help
212212
This driver supports MediaTek MT6779 basic clocks.
213213

214214
config COMMON_CLK_MT6779_MMSYS
215-
bool "Clock driver for MediaTek MT6779 mmsys"
215+
tristate "Clock driver for MediaTek MT6779 mmsys"
216216
depends on COMMON_CLK_MT6779
217217
help
218218
This driver supports MediaTek MT6779 mmsys clocks.
219219

220220
config COMMON_CLK_MT6779_IMGSYS
221-
bool "Clock driver for MediaTek MT6779 imgsys"
221+
tristate "Clock driver for MediaTek MT6779 imgsys"
222222
depends on COMMON_CLK_MT6779
223223
help
224224
This driver supports MediaTek MT6779 imgsys clocks.
225225

226226
config COMMON_CLK_MT6779_IPESYS
227-
bool "Clock driver for MediaTek MT6779 ipesys"
227+
tristate "Clock driver for MediaTek MT6779 ipesys"
228228
depends on COMMON_CLK_MT6779
229229
help
230230
This driver supports MediaTek MT6779 ipesys clocks.
231231

232232
config COMMON_CLK_MT6779_CAMSYS
233-
bool "Clock driver for MediaTek MT6779 camsys"
233+
tristate "Clock driver for MediaTek MT6779 camsys"
234234
depends on COMMON_CLK_MT6779
235235
help
236236
This driver supports MediaTek MT6779 camsys clocks.
237237

238238
config COMMON_CLK_MT6779_VDECSYS
239-
bool "Clock driver for MediaTek MT6779 vdecsys"
239+
tristate "Clock driver for MediaTek MT6779 vdecsys"
240240
depends on COMMON_CLK_MT6779
241241
help
242242
This driver supports MediaTek MT6779 vdecsys clocks.
243243

244244
config COMMON_CLK_MT6779_VENCSYS
245-
bool "Clock driver for MediaTek MT6779 vencsys"
245+
tristate "Clock driver for MediaTek MT6779 vencsys"
246246
depends on COMMON_CLK_MT6779
247247
help
248248
This driver supports MediaTek MT6779 vencsys clocks.
249249

250250
config COMMON_CLK_MT6779_MFGCFG
251-
bool "Clock driver for MediaTek MT6779 mfgcfg"
251+
tristate "Clock driver for MediaTek MT6779 mfgcfg"
252252
depends on COMMON_CLK_MT6779
253253
help
254254
This driver supports MediaTek MT6779 mfgcfg clocks.
255255

256256
config COMMON_CLK_MT6779_AUDSYS
257-
bool "Clock driver for Mediatek MT6779 audsys"
257+
tristate "Clock driver for Mediatek MT6779 audsys"
258258
depends on COMMON_CLK_MT6779
259259
help
260260
This driver supports Mediatek MT6779 audsys clocks.

drivers/clk/mediatek/clk-mt6779-aud.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
* Author: Wendell Lin <[email protected]>
55
*/
66

7+
#include <linux/module.h>
78
#include <linux/clk-provider.h>
89
#include <linux/of.h>
910
#include <linux/of_address.h>
@@ -114,4 +115,5 @@ static struct platform_driver clk_mt6779_aud_drv = {
114115
},
115116
};
116117

117-
builtin_platform_driver(clk_mt6779_aud_drv);
118+
module_platform_driver(clk_mt6779_aud_drv);
119+
MODULE_LICENSE("GPL");

drivers/clk/mediatek/clk-mt6779-cam.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
* Author: Wendell Lin <[email protected]>
55
*/
66

7+
#include <linux/module.h>
78
#include <linux/clk-provider.h>
89
#include <linux/platform_device.h>
910
#include <dt-bindings/clock/mt6779-clk.h>
@@ -63,4 +64,5 @@ static struct platform_driver clk_mt6779_cam_drv = {
6364
},
6465
};
6566

66-
builtin_platform_driver(clk_mt6779_cam_drv);
67+
module_platform_driver(clk_mt6779_cam_drv);
68+
MODULE_LICENSE("GPL");

drivers/clk/mediatek/clk-mt6779-img.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
* Author: Wendell Lin <[email protected]>
55
*/
66

7+
#include <linux/module.h>
78
#include <linux/clk-provider.h>
89
#include <linux/platform_device.h>
910
#include <dt-bindings/clock/mt6779-clk.h>
@@ -55,4 +56,5 @@ static struct platform_driver clk_mt6779_img_drv = {
5556
},
5657
};
5758

58-
builtin_platform_driver(clk_mt6779_img_drv);
59+
module_platform_driver(clk_mt6779_img_drv);
60+
MODULE_LICENSE("GPL");

drivers/clk/mediatek/clk-mt6779-ipe.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
* Author: Wendell Lin <[email protected]>
55
*/
66

7+
#include <linux/module.h>
78
#include <linux/clk-provider.h>
89
#include <linux/platform_device.h>
910
#include <dt-bindings/clock/mt6779-clk.h>
@@ -57,4 +58,5 @@ static struct platform_driver clk_mt6779_ipe_drv = {
5758
},
5859
};
5960

60-
builtin_platform_driver(clk_mt6779_ipe_drv);
61+
module_platform_driver(clk_mt6779_ipe_drv);
62+
MODULE_LICENSE("GPL");

drivers/clk/mediatek/clk-mt6779-mfg.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
* Author: Wendell Lin <[email protected]>
55
*/
66

7+
#include <linux/module.h>
78
#include <linux/clk-provider.h>
89
#include <linux/platform_device.h>
910

@@ -52,4 +53,5 @@ static struct platform_driver clk_mt6779_mfg_drv = {
5253
},
5354
};
5455

55-
builtin_platform_driver(clk_mt6779_mfg_drv);
56+
module_platform_driver(clk_mt6779_mfg_drv);
57+
MODULE_LICENSE("GPL");

drivers/clk/mediatek/clk-mt6779-mm.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
* Author: Wendell Lin <[email protected]>
55
*/
66

7+
#include <linux/module.h>
78
#include <linux/clk-provider.h>
89
#include <linux/platform_device.h>
910
#include <dt-bindings/clock/mt6779-clk.h>
@@ -105,4 +106,5 @@ static struct platform_driver clk_mt6779_mm_drv = {
105106
},
106107
};
107108

108-
builtin_platform_driver(clk_mt6779_mm_drv);
109+
module_platform_driver(clk_mt6779_mm_drv);
110+
MODULE_LICENSE("GPL");

drivers/clk/mediatek/clk-mt6779-vdec.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
* Author: Wendell Lin <[email protected]>
55
*/
66

7+
#include <linux/module.h>
78
#include <linux/clk-provider.h>
89
#include <linux/platform_device.h>
910

@@ -64,4 +65,5 @@ static struct platform_driver clk_mt6779_vdec_drv = {
6465
},
6566
};
6667

67-
builtin_platform_driver(clk_mt6779_vdec_drv);
68+
module_platform_driver(clk_mt6779_vdec_drv);
69+
MODULE_LICENSE("GPL");

drivers/clk/mediatek/clk-mt6779-venc.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
* Author: Wendell Lin <[email protected]>
55
*/
66

7+
#include <linux/module.h>
78
#include <linux/clk-provider.h>
89
#include <linux/platform_device.h>
910

@@ -55,4 +56,5 @@ static struct platform_driver clk_mt6779_venc_drv = {
5556
},
5657
};
5758

58-
builtin_platform_driver(clk_mt6779_venc_drv);
59+
module_platform_driver(clk_mt6779_venc_drv);
60+
MODULE_LICENSE("GPL");

drivers/clk/mediatek/clk-mt6779.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
* Author: Wendell Lin <[email protected]>
55
*/
66

7+
#include <linux/module.h>
78
#include <linux/of.h>
89
#include <linux/of_address.h>
910
#include <linux/of_device.h>
@@ -1314,3 +1315,4 @@ static int __init clk_mt6779_init(void)
13141315
}
13151316

13161317
arch_initcall(clk_mt6779_init);
1318+
MODULE_LICENSE("GPL");

0 commit comments

Comments
 (0)