[PATCH v3 3/5] charger: max14577: Add charger support for Maxim 14577
Krzysztof Kozlowski
k.kozlowski at samsung.com
Fri Nov 22 04:57:59 EST 2013
On Fri, 2013-11-22 at 12:54 +0400, Alexander Shiyan wrote:
> > MAX14577 chip is a multi-function device which includes MUIC, charger
> > and voltage regulator. The driver is located in drivers/mfd.
> >
> > This patch supports battery charging control of MAX14577 chip and
> > provides power supply class information to userspace.
> >
> > Signed-off-by: Krzysztof Kozlowski <k.kozlowski at samsung.com>
> > Signed-off-by: Kyungmin Park <kyungmin.park at samsung.com>
> ...
> > diff --git a/drivers/power/max14577_charger.c b/drivers/power/max14577_charger.c
> ...
> > +static struct platform_driver max14577_charger_driver = {
> > + .driver = {
> > + .owner = THIS_MODULE,
> > + .name = "max14577-charger",
> > + },
> > + .probe = max14577_charger_probe,
> > + .remove = max14577_charger_remove,
> > +};
> > +
> > +static int __init max14577_charger_init(void)
> > +{
> > + return platform_driver_register(&max14577_charger_driver);
> > +}
> > +
> > +static void __exit max14577_charger_exit(void)
> > +{
> > + platform_driver_unregister(&max14577_charger_driver);
> > +}
> > +
> > +module_init(max14577_charger_init);
> > +module_exit(max14577_charger_exit);
>
> Replace "module_init" & "module_exit" with module_platform_driver here.
Sure, thanks for pointing this.
Best regards,
Krzysztof
More information about the linux-arm-kernel
mailing list