Re: [PATCH] power_supply: Convert power_supply i2c drivers tomodule_i2c_driver

From: Rhyland Klein
Date: Mon Jan 23 2012 - 14:29:16 EST


On Fri, 2012-01-20 at 22:42 -0800, Axel Lin wrote:
> diff --git a/drivers/power/sbs-battery.c b/drivers/power/sbs-battery.c
> index 9ff8af0..4f05498 100644
> --- a/drivers/power/sbs-battery.c
> +++ b/drivers/power/sbs-battery.c
> @@ -853,17 +853,7 @@ static struct i2c_driver sbs_battery_driver = {
> },
> };
>
> -static int __init sbs_battery_init(void)
> -{
> - return i2c_add_driver(&sbs_battery_driver);
> -}
> -module_init(sbs_battery_init);
> -
> -static void __exit sbs_battery_exit(void)
> -{
> - i2c_del_driver(&sbs_battery_driver);
> -}
> -module_exit(sbs_battery_exit);
> +module_i2c_driver(sbs_battery_driver);

For sbs-battery
Acked-by Rhyland Klein <rklein@xxxxxxxxxx>

-Rhyland

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/