diff options
author | Yi Zhang <yizhang@marvell.com> | 2013-01-22 03:43:45 +0100 |
---|---|---|
committer | Samuel Ortiz <sameo@linux.intel.com> | 2013-02-14 00:22:54 +0100 |
commit | 306df798507d8e009a7d4a5e8ce238a3b107de20 (patch) | |
tree | 763002544391b3f0369dfb46dc4e4993a467e7c6 /drivers/mfd/88pm805.c | |
parent | mfd: db8500-prcmu: Add ux500_wdt mfd_cell (diff) | |
download | linux-306df798507d8e009a7d4a5e8ce238a3b107de20.tar.xz linux-306df798507d8e009a7d4a5e8ce238a3b107de20.zip |
mfd: 88pm80x: Remove redundant devm_* calls
devm_* functions are device managed and make error handling
and code simpler; it also fix error exit paths
Signed-off-by: Yi Zhang <yizhang@marvell.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Diffstat (limited to 'drivers/mfd/88pm805.c')
-rw-r--r-- | drivers/mfd/88pm805.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/mfd/88pm805.c b/drivers/mfd/88pm805.c index e671230be2b1..65d7ac099b20 100644 --- a/drivers/mfd/88pm805.c +++ b/drivers/mfd/88pm805.c @@ -257,7 +257,7 @@ static int pm805_probe(struct i2c_client *client, pdata->plat_config(chip, pdata); err_805_init: - pm80x_deinit(client); + pm80x_deinit(); out_init: return ret; } @@ -269,7 +269,7 @@ static int pm805_remove(struct i2c_client *client) mfd_remove_devices(chip->dev); device_irq_exit_805(chip); - pm80x_deinit(client); + pm80x_deinit(); return 0; } |