Skip to content

Commit

Permalink
i2c: omap: Annotate the remove code
Browse files Browse the repository at this point in the history
The omap_i2c_remove function may not be needed after
device exit so the memory could be freed.

Signed-off-by: Shubhrajyoti D <shubhrajyoti@ti.com>
Signed-off-by: Wolfram Sang <w.sang@pengutronix.de>
  • Loading branch information
Shubhrajyoti D authored and Wolfram Sang committed Jul 12, 2012
1 parent 7c86d44 commit d790aea
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions drivers/i2c/busses/i2c-omap.c
Original file line number Diff line number Diff line change
Expand Up @@ -1102,8 +1102,7 @@ omap_i2c_probe(struct platform_device *pdev)
return r;
}

static int
omap_i2c_remove(struct platform_device *pdev)
static int __devexit omap_i2c_remove(struct platform_device *pdev)
{
struct omap_i2c_dev *dev = platform_get_drvdata(pdev);
struct resource *mem;
Expand Down Expand Up @@ -1187,7 +1186,7 @@ static struct dev_pm_ops omap_i2c_pm_ops = {

static struct platform_driver omap_i2c_driver = {
.probe = omap_i2c_probe,
.remove = omap_i2c_remove,
.remove = __devexit_p(omap_i2c_remove),
.driver = {
.name = "omap_i2c",
.owner = THIS_MODULE,
Expand Down

0 comments on commit d790aea

Please sign in to comment.