Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 296859
b: refs/heads/master
c: 61a2af3
h: refs/heads/master
i:
  296857: 0c8ca0a
  296855: 65cae13
v: v3
  • Loading branch information
Axel Lin authored and Samuel Ortiz committed Mar 6, 2012
1 parent 389b3e7 commit a25baf5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 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: b3b97473ee07ae8904e9d8fe02914de2188d302c
refs/heads/master: 61a2af301fa145490868fcf36b4bbea22398f760
9 changes: 4 additions & 5 deletions trunk/drivers/mfd/s5m-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ EXPORT_SYMBOL_GPL(s5m_reg_read);

int s5m_bulk_read(struct s5m87xx_dev *s5m87xx, u8 reg, int count, u8 *buf)
{
return regmap_bulk_read(s5m87xx->regmap, reg, buf, count);;
return regmap_bulk_read(s5m87xx->regmap, reg, buf, count);
}
EXPORT_SYMBOL_GPL(s5m_bulk_read);

Expand Down Expand Up @@ -94,8 +94,7 @@ static int s5m87xx_i2c_probe(struct i2c_client *i2c,
{
struct s5m_platform_data *pdata = i2c->dev.platform_data;
struct s5m87xx_dev *s5m87xx;
int ret = 0;
int error;
int ret;

s5m87xx = devm_kzalloc(&i2c->dev, sizeof(struct s5m87xx_dev),
GFP_KERNEL);
Expand All @@ -117,9 +116,9 @@ static int s5m87xx_i2c_probe(struct i2c_client *i2c,

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

Expand Down

0 comments on commit a25baf5

Please sign in to comment.