Re: [PATCH 2/5] power: max17040_battery: Use dev_pm_ops

From: Anton Vorontsov
Date: Mon Apr 01 2013 - 02:04:06 EST


On Sun, Mar 10, 2013 at 02:34:06PM +0100, Lars-Peter Clausen wrote:
> Use dev_pm_ops instead of the deprecated legacy suspend/resume callbacks.
>
> Cc: Minkyu Kang <mk7.kang@xxxxxxxxxxx>
> Signed-off-by: Lars-Peter Clausen <lars@xxxxxxxxxx>
> ---

Patches 1-3 applied, thanks a lot!

[...]
> @@ -278,14 +281,14 @@ static const struct i2c_device_id max17040_id[] = {
> };
> MODULE_DEVICE_TABLE(i2c, max17040_id);
>
> +

(Stray new line...)

> static struct i2c_driver max17040_i2c_driver = {
> .driver = {
> .name = "max17040",
> + .pm = MAX17040_PM_OPS,
> },
> .probe = max17040_probe,
> .remove = max17040_remove,
> - .suspend = max17040_suspend,
> - .resume = max17040_resume,
> .id_table = max17040_id,
> };
> module_i2c_driver(max17040_i2c_driver);
> --
> 1.8.0
--
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/