mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-07 04:12:04 -04:00
FROMGIT: 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. bug: 146864653 Signed-off-by: Baolin Wang <baolin.wang7@gmail.com> Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com> (cherry picked from commit f78c55e3b4806974f7d590b2aab8683232b7bd25 https://git.kernel.org/pub/scm/linux/kernel/git/sre/linux-power-supply.git for-next)
This commit is contained in:
parent
072cc0324b
commit
a9ca5eca65
2 changed files with 7 additions and 2 deletions
|
|
@ -238,7 +238,7 @@ config SYSCON_REBOOT_MODE
|
|||
action according to the mode.
|
||||
|
||||
config POWER_RESET_SC27XX
|
||||
bool "Spreadtrum SC27xx PMIC power-off driver"
|
||||
tristate "Spreadtrum SC27xx PMIC power-off driver"
|
||||
depends on MFD_SC27XX_PMIC || COMPILE_TEST
|
||||
help
|
||||
This driver supports powering off a system through
|
||||
|
|
|
|||
|
|
@ -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");
|
||||
|
|
|
|||
Loading…
Reference in a new issue