Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 296805
b: refs/heads/master
c: 4d75dd6
h: refs/heads/master
i:
  296803: ca830f0
v: v3
  • Loading branch information
Axel Lin authored and Samuel Ortiz committed Mar 6, 2012
1 parent e59a387 commit a477a88
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: d48f411c10f2badaf88e6050cd3d3acd52197356
refs/heads/master: 4d75dd61dfb53eaa286c54fb121e5b51b106c272
7 changes: 5 additions & 2 deletions trunk/drivers/mfd/da9052-i2c.c
Original file line number Diff line number Diff line change
Expand Up @@ -74,14 +74,16 @@ static int __devinit da9052_i2c_probe(struct i2c_client *client,

ret = da9052_i2c_enable_multiwrite(da9052);
if (ret < 0)
goto err;
goto err_regmap;

ret = da9052_device_init(da9052, id->driver_data);
if (ret != 0)
goto err;
goto err_regmap;

return 0;

err_regmap:
regmap_exit(da9052->regmap);
err:
kfree(da9052);
return ret;
Expand All @@ -92,6 +94,7 @@ static int da9052_i2c_remove(struct i2c_client *client)
struct da9052 *da9052 = i2c_get_clientdata(client);

da9052_device_exit(da9052);
regmap_exit(da9052->regmap);
kfree(da9052);

return 0;
Expand Down
5 changes: 4 additions & 1 deletion trunk/drivers/mfd/da9052-spi.c
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,12 @@ static int da9052_spi_probe(struct spi_device *spi)

ret = da9052_device_init(da9052, id->driver_data);
if (ret != 0)
goto err;
goto err_regmap;

return 0;

err_regmap:
regmap_exit(da9052->regmap);
err:
kfree(da9052);
return ret;
Expand All @@ -66,6 +68,7 @@ static int da9052_spi_remove(struct spi_device *spi)
struct da9052 *da9052 = dev_get_drvdata(&spi->dev);

da9052_device_exit(da9052);
regmap_exit(da9052->regmap);
kfree(da9052);

return 0;
Expand Down

0 comments on commit a477a88

Please sign in to comment.