power:pmic: prevent data abort for pmic bat command
authorPiotr Wilczek <p.wilczek@samsung.com>
Thu, 26 Sep 2013 12:43:35 +0000 (14:43 +0200)
committerTom Rini <trini@ti.com>
Mon, 7 Oct 2013 12:21:13 +0000 (08:21 -0400)
commita6abaadcfa69d02aafc51b22a39b8dbde1a7a76c
treefbb6c0217e746ba828231c90552db4b621f8adc7
parentf835c77fb7e57508ffe8d8ca3a092ee28add77b2
power:pmic: prevent data abort for pmic bat command

This patch prevents data abort when pmic bat command is called
on non-batery pmic device.

Signed-off-by: Piotr Wilczek <p.wilczek@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
CC: Lukasz Majewski <l.majewski@samsung.com>
CC: Minkyu Kang <mk7.kang@samsung.com>
drivers/power/power_core.c