diff options
author | Rob Herring <robh@kernel.org> | 2020-04-29 15:58:24 -0500 |
---|---|---|
committer | Rob Herring <robh@kernel.org> | 2020-05-13 12:42:46 -0500 |
commit | 70e4758aaae04a5b0cb53db47fd94eb1714fd0ac (patch) | |
tree | 7d84c06a5c47e8e9e54ab8093bbde6b9608e09a6 /drivers/bus/vexpress-config.c | |
parent | 310f80d61717425fbf799ef0ff0926e64cd57d9c (diff) | |
download | lwn-70e4758aaae04a5b0cb53db47fd94eb1714fd0ac.tar.gz lwn-70e4758aaae04a5b0cb53db47fd94eb1714fd0ac.zip |
bus: vexpress-config: Support building as module
Enable building vexpress-config driver as a module.
Cc: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Cc: Linus Walleij <linus.walleij@linaro.org>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Reviewed-by: Sudeep Holla <sudeep.holla@arm.com>
Acked-by: Liviu Dudau <liviu.dudau@arm.com>
Signed-off-by: Rob Herring <robh@kernel.org>
Diffstat (limited to 'drivers/bus/vexpress-config.c')
-rw-r--r-- | drivers/bus/vexpress-config.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/drivers/bus/vexpress-config.c b/drivers/bus/vexpress-config.c index caa35a4cb34d..a58ac0c8e282 100644 --- a/drivers/bus/vexpress-config.c +++ b/drivers/bus/vexpress-config.c @@ -7,6 +7,7 @@ #include <linux/err.h> #include <linux/init.h> #include <linux/io.h> +#include <linux/module.h> #include <linux/of.h> #include <linux/platform_device.h> #include <linux/of_device.h> @@ -407,15 +408,12 @@ static const struct platform_device_id vexpress_syscfg_id_table[] = { { "vexpress-syscfg", }, {}, }; +MODULE_DEVICE_TABLE(platform, vexpress_syscfg_id_table); static struct platform_driver vexpress_syscfg_driver = { .driver.name = "vexpress-syscfg", .id_table = vexpress_syscfg_id_table, .probe = vexpress_syscfg_probe, }; - -static int __init vexpress_syscfg_init(void) -{ - return platform_driver_register(&vexpress_syscfg_driver); -} -core_initcall(vexpress_syscfg_init); +module_platform_driver(vexpress_syscfg_driver); +MODULE_LICENSE("GPL v2"); |