diff options
author | Kevin Hilman <khilman@baylibre.com> | 2020-10-19 15:46:49 -0700 |
---|---|---|
committer | Kevin Hilman <khilman@baylibre.com> | 2020-10-26 11:33:43 -0700 |
commit | d9da1785ec0caed9a52183f994afefff0da25d7e (patch) | |
tree | df56dd416b91db9392e9ea7c736766a5b5a52be4 /drivers/soc/amlogic/meson-secure-pwrc.c | |
parent | 5d2fc13ba052149e35675da108607846659a8b14 (diff) |
soc: meson: enable building drivers as modules
Enable SoC drivers for 64-bit Amlogic SoCs to be built as modules.
Signed-off-by: Kevin Hilman <khilman@baylibre.com>
Diffstat (limited to 'drivers/soc/amlogic/meson-secure-pwrc.c')
-rw-r--r-- | drivers/soc/amlogic/meson-secure-pwrc.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/soc/amlogic/meson-secure-pwrc.c b/drivers/soc/amlogic/meson-secure-pwrc.c index 5fb29a475879..59bd195fa9c9 100644 --- a/drivers/soc/amlogic/meson-secure-pwrc.c +++ b/drivers/soc/amlogic/meson-secure-pwrc.c @@ -13,6 +13,7 @@ #include <dt-bindings/power/meson-a1-power.h> #include <linux/arm-smccc.h> #include <linux/firmware/meson/meson_sm.h> +#include <linux/module.h> #define PWRC_ON 1 #define PWRC_OFF 0 @@ -193,6 +194,7 @@ static const struct of_device_id meson_secure_pwrc_match_table[] = { }, { /* sentinel */ } }; +MODULE_DEVICE_TABLE(of, meson_secure_pwrc_match_table); static struct platform_driver meson_secure_pwrc_driver = { .probe = meson_secure_pwrc_probe, @@ -201,4 +203,5 @@ static struct platform_driver meson_secure_pwrc_driver = { .of_match_table = meson_secure_pwrc_match_table, }, }; -builtin_platform_driver(meson_secure_pwrc_driver); +module_platform_driver(meson_secure_pwrc_driver); +MODULE_LICENSE("Dual MIT/GPL"); |