Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 358785
b: refs/heads/master
c: 669da30
h: refs/heads/master
i:
  358783: 1f60830
v: v3
  • Loading branch information
Tushar Behera authored and Wolfram Sang committed Jan 28, 2013
1 parent 090b0cf commit a3120de
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 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: 876ae85c8b811668c2c115ea78c2241f562977fb
refs/heads/master: 669da30d4c972fe62e14a435abf909d19d9b9467
9 changes: 3 additions & 6 deletions trunk/drivers/i2c/busses/i2c-s3c2410.c
Original file line number Diff line number Diff line change
Expand Up @@ -1000,8 +1000,8 @@ static int s3c24xx_i2c_probe(struct platform_device *pdev)

i2c->pdata = devm_kzalloc(&pdev->dev, sizeof(*pdata), GFP_KERNEL);
if (!i2c->pdata) {
ret = -ENOMEM;
goto err_noclk;
dev_err(&pdev->dev, "no memory for platform data\n");
return -ENOMEM;
}

i2c->quirks = s3c24xx_get_device_quirks(pdev);
Expand All @@ -1025,8 +1025,7 @@ static int s3c24xx_i2c_probe(struct platform_device *pdev)
i2c->clk = clk_get(&pdev->dev, "i2c");
if (IS_ERR(i2c->clk)) {
dev_err(&pdev->dev, "cannot get clock\n");
ret = -ENOENT;
goto err_noclk;
return -ENOENT;
}

dev_dbg(&pdev->dev, "clock source %p\n", i2c->clk);
Expand Down Expand Up @@ -1133,8 +1132,6 @@ static int s3c24xx_i2c_probe(struct platform_device *pdev)
err_clk:
clk_disable_unprepare(i2c->clk);
clk_put(i2c->clk);

err_noclk:
return ret;
}

Expand Down

0 comments on commit a3120de

Please sign in to comment.