Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 294808
b: refs/heads/master
c: 4ea1557
h: refs/heads/master
v: v3
  • Loading branch information
Mark Brown authored and Wolfram Sang committed Mar 7, 2012
1 parent 5cc2cc7 commit c46aeb8
Show file tree
Hide file tree
Showing 2 changed files with 2 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: 979b907fa55be8cdbbf455b9204b7e4602f303e6
refs/heads/master: 4ea1557ff7862f63511420395d16647b74ba6f5c
4 changes: 1 addition & 3 deletions trunk/drivers/i2c/busses/i2c-s3c2410.c
Original file line number Diff line number Diff line change
Expand Up @@ -890,7 +890,7 @@ static int s3c24xx_i2c_probe(struct platform_device *pdev)
}
}

i2c = kzalloc(sizeof(struct s3c24xx_i2c), GFP_KERNEL);
i2c = devm_kzalloc(&pdev->dev, sizeof(struct s3c24xx_i2c), GFP_KERNEL);
if (!i2c) {
dev_err(&pdev->dev, "no memory for state\n");
return -ENOMEM;
Expand Down Expand Up @@ -1035,7 +1035,6 @@ static int s3c24xx_i2c_probe(struct platform_device *pdev)
clk_put(i2c->clk);

err_noclk:
kfree(i2c);
return ret;
}

Expand All @@ -1061,7 +1060,6 @@ static int s3c24xx_i2c_remove(struct platform_device *pdev)
release_resource(i2c->ioarea);
s3c24xx_i2c_dt_gpio_free(i2c);
kfree(i2c->ioarea);
kfree(i2c);

return 0;
}
Expand Down

0 comments on commit c46aeb8

Please sign in to comment.