Commit ebb410a0 authored by Jakub Kicinski's avatar Jakub Kicinski

Merge branch 'net-dsa-remove-unnecessary-i2c_set_clientdata'

Yang Yingliang says:

====================
net: dsa: remove unnecessary i2c_set_clientdata()

This patchset https://lore.kernel.org/all/20220921140524.3831101-8-yangyingliang@huawei.com/T/
removed all set_drvdata(NULL) in driver remove function.

i2c_set_clientdata() is another wrapper of set drvdata function, to follow
the same convention, remove i2c_set_clientdata() called in driver remove
function in drivers/net/dsa/.
====================

Link: https://lore.kernel.org/r/20220923143742.87093-1-yangyingliang@huawei.comSigned-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parents b860a1b9 6387bf7c
......@@ -74,8 +74,6 @@ static int lan9303_i2c_remove(struct i2c_client *client)
lan9303_remove(&sw_dev->chip);
i2c_set_clientdata(client, NULL);
return 0;
}
......
......@@ -59,8 +59,6 @@ static int ksz9477_i2c_remove(struct i2c_client *i2c)
if (dev)
ksz_switch_remove(dev);
i2c_set_clientdata(i2c, NULL);
return 0;
}
......
......@@ -114,8 +114,6 @@ static int xrs700x_i2c_remove(struct i2c_client *i2c)
xrs700x_switch_remove(priv);
i2c_set_clientdata(i2c, NULL);
return 0;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment