mfd: palmas: cleanup error path
authorLaxman Dewangan <ldewangan@nvidia.com>
Thu, 26 Sep 2013 07:23:39 +0000 (12:23 +0530)
committerAjay Nandakumar <anandakumarm@nvidia.com>
Thu, 3 Oct 2013 13:47:24 +0000 (18:47 +0530)
commitf5a8fa21ebedf50a71562d832cbdcdf6a89f9c44
tree57f24a64f1db95cc3a27fecf0f36ad8787982b68
parent9f44b7fc20e947866da53b0e557b9841a38c8aec
mfd: palmas: cleanup error path

Fix the resource leak and clean the error path.

Change-Id: I4b5697ab2cedb8bd7cc00a49e572071d7c91ab8d
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
(cherry picked from commit 62c91240337bed836e654a685d81e326b71e4b5c)
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>
drivers/mfd/palmas.c