Re: [PATCH v3 3/5] charger: max14577: Add charger support for Maxim 14577

Alexander Shiyan
2013-11-22T08:54:36Z

> 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@samsung.com>
> Signed-off-by: Kyungmin Park <kyungmin.park@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.

---