forked from torvalds/linux
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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]>
- Loading branch information
1 parent
32b028f
commit f09b946
Showing
10 changed files
with
35 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,6 +4,7 @@ | |
* Author: Wendell Lin <[email protected]> | ||
*/ | ||
|
||
#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"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,6 +4,7 @@ | |
* Author: Wendell Lin <[email protected]> | ||
*/ | ||
|
||
#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"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,6 +4,7 @@ | |
* Author: Wendell Lin <[email protected]> | ||
*/ | ||
|
||
#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"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,6 +4,7 @@ | |
* Author: Wendell Lin <[email protected]> | ||
*/ | ||
|
||
#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"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,6 +4,7 @@ | |
* Author: Wendell Lin <[email protected]> | ||
*/ | ||
|
||
#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"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,6 +4,7 @@ | |
* Author: Wendell Lin <[email protected]> | ||
*/ | ||
|
||
#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"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,6 +4,7 @@ | |
* Author: Wendell Lin <[email protected]> | ||
*/ | ||
|
||
#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"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,6 +4,7 @@ | |
* Author: Wendell Lin <[email protected]> | ||
*/ | ||
|
||
#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"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,6 +4,7 @@ | |
* Author: Wendell Lin <[email protected]> | ||
*/ | ||
|
||
#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"); |