summaryrefslogtreecommitdiffstats
path: root/drivers/soc/amlogic/meson-secure-pwrc.c
diff options
context:
space:
mode:
authorKevin Hilman <khilman@baylibre.com>2020-10-19 15:46:49 -0700
committerKevin Hilman <khilman@baylibre.com>2020-10-26 11:33:43 -0700
commitd9da1785ec0caed9a52183f994afefff0da25d7e (patch)
treedf56dd416b91db9392e9ea7c736766a5b5a52be4 /drivers/soc/amlogic/meson-secure-pwrc.c
parent5d2fc13ba052149e35675da108607846659a8b14 (diff)
downloadlinux-d9da1785ec0caed9a52183f994afefff0da25d7e.tar.gz
linux-d9da1785ec0caed9a52183f994afefff0da25d7e.tar.xz
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.c5
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");