summaryrefslogtreecommitdiff
path: root/drivers/power/reset/sc27xx-poweroff.c
diff options
context:
space:
mode:
authorBaolin Wang <baolin.wang7@gmail.com>2020-03-09 11:18:46 +0300
committerSebastian Reichel <sebastian.reichel@collabora.com>2020-03-12 01:32:09 +0300
commitf78c55e3b4806974f7d590b2aab8683232b7bd25 (patch)
tree53a07071f5307d30f620a485f4f602fc80873c74 /drivers/power/reset/sc27xx-poweroff.c
parent274afbc3ad33136962d66447e89d02e3c142a30a (diff)
downloadlinux-f78c55e3b4806974f7d590b2aab8683232b7bd25.tar.xz
power: reset: sc27xx: Allow the SC27XX poweroff driver building into a module
Change the config to 'tristate' and use module_platform_driver() to allow the SC27XX poweroff driver building into a module, as well as adding some mudule information. Signed-off-by: Baolin Wang <baolin.wang7@gmail.com> Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
Diffstat (limited to 'drivers/power/reset/sc27xx-poweroff.c')
-rw-r--r--drivers/power/reset/sc27xx-poweroff.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/drivers/power/reset/sc27xx-poweroff.c b/drivers/power/reset/sc27xx-poweroff.c
index 91b5eceeb810..69863074daf6 100644
--- a/drivers/power/reset/sc27xx-poweroff.c
+++ b/drivers/power/reset/sc27xx-poweroff.c
@@ -6,6 +6,7 @@
#include <linux/cpu.h>
#include <linux/kernel.h>
+#include <linux/module.h>
#include <linux/platform_device.h>
#include <linux/pm.h>
#include <linux/regmap.h>
@@ -71,4 +72,8 @@ static struct platform_driver sc27xx_poweroff_driver = {
.name = "sc27xx-poweroff",
},
};
-builtin_platform_driver(sc27xx_poweroff_driver);
+module_platform_driver(sc27xx_poweroff_driver);
+
+MODULE_DESCRIPTION("Power off driver for SC27XX PMIC Device");
+MODULE_AUTHOR("Baolin Wang <baolin.wang@unisoc.com>");
+MODULE_LICENSE("GPL v2");