Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 296820
b: refs/heads/master
c: 621210e
h: refs/heads/master
v: v3
  • Loading branch information
Sangbeom Kim authored and Samuel Ortiz committed Mar 6, 2012
1 parent 5d4b98b commit 1ef48f5
Show file tree
Hide file tree
Showing 2 changed files with 3 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: 1773140feccf69528678348bb2d53b2c299ab4ee
refs/heads/master: 621210e25d5de02dae111ad90548577dd64c7663
5 changes: 2 additions & 3 deletions trunk/drivers/mfd/s5m-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,8 @@ static int s5m87xx_i2c_probe(struct i2c_client *i2c,
int ret = 0;
int error;

s5m87xx = kzalloc(sizeof(struct s5m87xx_dev), GFP_KERNEL);
s5m87xx = devm_kzalloc(&i2c->dev, sizeof(struct s5m87xx_dev),
GFP_KERNEL);
if (s5m87xx == NULL)
return -ENOMEM;

Expand Down Expand Up @@ -126,7 +127,6 @@ static int s5m87xx_i2c_probe(struct i2c_client *i2c,
s5m_irq_exit(s5m87xx);
i2c_unregister_device(s5m87xx->rtc);
regmap_exit(s5m87xx->regmap);
kfree(s5m87xx);
return ret;
}

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

Expand Down

0 comments on commit 1ef48f5

Please sign in to comment.