pmic8xxx-pwrkey: move to subsys_init

Signed-off-by: Iliyan Malchev <malchev@google.com>
This commit is contained in:
Iliyan Malchev 2012-10-16 10:25:59 -07:00
parent 2d58d21ace
commit 75f55110dc

View file

@ -219,7 +219,13 @@ static struct platform_driver pmic8xxx_pwrkey_driver = {
.pm = &pm8xxx_pwr_key_pm_ops,
},
};
module_platform_driver(pmic8xxx_pwrkey_driver);
static int __devinit pmic8xxx_pwrkey_init(void)
{
return platform_driver_register(&pmic8xxx_pwrkey_driver);
}
subsys_initcall(pmic8xxx_pwrkey_init);
MODULE_ALIAS("platform:pmic8xxx_pwrkey");
MODULE_DESCRIPTION("PMIC8XXX Power Key driver");