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

Alexander Shiyan shc_work at mail.ru
Fri Nov 22 03:54:36 EST 2013


> 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.

---


More information about the linux-arm-kernel mailing list