summaryrefslogtreecommitdiffstats
path: root/drivers/soc/amlogic/meson-gx-pwrc-vpu.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-gx-pwrc-vpu.c
parent5d2fc13ba052149e35675da108607846659a8b14 (diff)
downloadlinux-stable-d9da1785ec0caed9a52183f994afefff0da25d7e.tar.gz
linux-stable-d9da1785ec0caed9a52183f994afefff0da25d7e.tar.bz2
linux-stable-d9da1785ec0caed9a52183f994afefff0da25d7e.zip
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-gx-pwrc-vpu.c')
-rw-r--r--drivers/soc/amlogic/meson-gx-pwrc-vpu.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/soc/amlogic/meson-gx-pwrc-vpu.c b/drivers/soc/amlogic/meson-gx-pwrc-vpu.c
index 21b4bc811c00..8790627e3098 100644
--- a/drivers/soc/amlogic/meson-gx-pwrc-vpu.c
+++ b/drivers/soc/amlogic/meson-gx-pwrc-vpu.c
@@ -14,6 +14,7 @@
#include <linux/of_device.h>
#include <linux/reset.h>
#include <linux/clk.h>
+#include <linux/module.h>
/* AO Offsets */
@@ -364,6 +365,7 @@ static const struct of_device_id meson_gx_pwrc_vpu_match_table[] = {
},
{ /* sentinel */ }
};
+MODULE_DEVICE_TABLE(of, meson_gx_pwrc_vpu_match_table);
static struct platform_driver meson_gx_pwrc_vpu_driver = {
.probe = meson_gx_pwrc_vpu_probe,
@@ -373,4 +375,5 @@ static struct platform_driver meson_gx_pwrc_vpu_driver = {
.of_match_table = meson_gx_pwrc_vpu_match_table,
},
};
-builtin_platform_driver(meson_gx_pwrc_vpu_driver);
+module_platform_driver(meson_gx_pwrc_vpu_driver);
+MODULE_LICENSE("GPL v2");