Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 308725
b: refs/heads/master
c: 1092e1c
h: refs/heads/master
i:
  308723: d43da98
v: v3
  • Loading branch information
Axel Lin authored and Samuel Ortiz committed May 9, 2012
1 parent 7c9f68f commit 244db16
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 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: f8dddc0cfe9f56ed74fd5efde8d0754f5fb73a3f
refs/heads/master: 1092e1c761dd0dc92a431085e322956d91d057a6
6 changes: 2 additions & 4 deletions trunk/drivers/mfd/s5m-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -114,12 +114,12 @@ static int s5m87xx_i2c_probe(struct i2c_client *i2c,
s5m87xx->wakeup = pdata->wakeup;
}

s5m87xx->regmap = regmap_init_i2c(i2c, &s5m_regmap_config);
s5m87xx->regmap = devm_regmap_init_i2c(i2c, &s5m_regmap_config);
if (IS_ERR(s5m87xx->regmap)) {
ret = PTR_ERR(s5m87xx->regmap);
dev_err(&i2c->dev, "Failed to allocate register map: %d\n",
ret);
goto err;
return ret;
}

s5m87xx->rtc = i2c_new_dummy(i2c->adapter, RTC_I2C_ADDR);
Expand Down Expand Up @@ -159,7 +159,6 @@ static int s5m87xx_i2c_probe(struct i2c_client *i2c,
mfd_remove_devices(s5m87xx->dev);
s5m_irq_exit(s5m87xx);
i2c_unregister_device(s5m87xx->rtc);
regmap_exit(s5m87xx->regmap);
return ret;
}

Expand All @@ -170,7 +169,6 @@ static int s5m87xx_i2c_remove(struct i2c_client *i2c)
mfd_remove_devices(s5m87xx->dev);
s5m_irq_exit(s5m87xx);
i2c_unregister_device(s5m87xx->rtc);
regmap_exit(s5m87xx->regmap);
return 0;
}

Expand Down

0 comments on commit 244db16

Please sign in to comment.