提交 d790aea7 编写于 作者: S Shubhrajyoti D 提交者: Wolfram Sang

i2c: omap: Annotate the remove code

The omap_i2c_remove function may not be needed after
device exit so the memory could be freed.
Signed-off-by: NShubhrajyoti D <shubhrajyoti@ti.com>
Signed-off-by: NWolfram Sang <w.sang@pengutronix.de>
上级 7c86d44c
......@@ -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;
......@@ -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,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册