提交 ce5d4a43 编写于 作者: W Wolfram Sang 提交者: Samuel Ortiz

mfd: Remove obsolete cleanup for wl1273 clientdata

A few new i2c-drivers came into the kernel which clear the clientdata-pointer
on exit or error. This is obsolete meanwhile, the core will do it.
Signed-off-by: NWolfram Sang <w.sang@pengutronix.de>
Signed-off-by: NSamuel Ortiz <sameo@linux.intel.com>
上级 b103e0b3
......@@ -38,7 +38,6 @@ static int wl1273_core_remove(struct i2c_client *client)
dev_dbg(&client->dev, "%s\n", __func__);
mfd_remove_devices(&client->dev);
i2c_set_clientdata(client, NULL);
kfree(core);
return 0;
......@@ -104,7 +103,6 @@ static int __devinit wl1273_core_probe(struct i2c_client *client,
return 0;
err:
i2c_set_clientdata(client, NULL);
pdata->free_resources();
kfree(core);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册