power: ds2782_battery: Simplify the PM hooks
authorFabio Estevam <fabio.estevam@freescale.com>
Thu, 9 Oct 2014 22:50:26 +0000 (19:50 -0300)
committerSebastian Reichel <sre@kernel.org>
Mon, 17 Nov 2014 02:07:11 +0000 (03:07 +0100)
commit99a79565e6db676bca8c7aeddd9fec44e730965e
tree20a76e26384931cefc3d40390251190219622bc7
parent6136c41ae9c7af4bd89d845bda5dd84b9c9f3138
power: ds2782_battery: Simplify the PM hooks

The SIMPLE_DEV_PM_OPS() macro already takes care of the CONFIG_PM_SLEEP=n case,
so we can simplify the code a little bit.

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Signed-off-by: Sebastian Reichel <sre@kernel.org>
drivers/power/ds2782_battery.c