diff options
| author | Jakub Kicinski <[email protected]> | 2022-09-26 17:44:31 -0700 |
|---|---|---|
| committer | Jakub Kicinski <[email protected]> | 2022-09-26 17:44:31 -0700 |
| commit | ebb410a03e4724af5638dd7164ead5fadff26283 (patch) | |
| tree | 655207cffb1576b9e34b54c947ff35bc1b76da6b | |
| parent | b860a1b964be7917ed3dcaa674ec0a2ba0a62aa0 (diff) | |
| parent | 6387bf7c390a17a03f05a70099e135f61c7cb437 (diff) | |
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/[email protected]/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/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>
| -rw-r--r-- | drivers/net/dsa/lan9303_i2c.c | 2 | ||||
| -rw-r--r-- | drivers/net/dsa/microchip/ksz9477_i2c.c | 2 | ||||
| -rw-r--r-- | drivers/net/dsa/xrs700x/xrs700x_i2c.c | 2 |
3 files changed, 0 insertions, 6 deletions
diff --git a/drivers/net/dsa/lan9303_i2c.c b/drivers/net/dsa/lan9303_i2c.c index 8ca4713310fa..79be5fc044bd 100644 --- a/drivers/net/dsa/lan9303_i2c.c +++ b/drivers/net/dsa/lan9303_i2c.c @@ -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; } diff --git a/drivers/net/dsa/microchip/ksz9477_i2c.c b/drivers/net/dsa/microchip/ksz9477_i2c.c index 8fbc122e3384..e111756f6473 100644 --- a/drivers/net/dsa/microchip/ksz9477_i2c.c +++ b/drivers/net/dsa/microchip/ksz9477_i2c.c @@ -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; } diff --git a/drivers/net/dsa/xrs700x/xrs700x_i2c.c b/drivers/net/dsa/xrs700x/xrs700x_i2c.c index 6deae388a0d6..cd533b9e17ec 100644 --- a/drivers/net/dsa/xrs700x/xrs700x_i2c.c +++ b/drivers/net/dsa/xrs700x/xrs700x_i2c.c @@ -114,8 +114,6 @@ static int xrs700x_i2c_remove(struct i2c_client *i2c) xrs700x_switch_remove(priv); - i2c_set_clientdata(i2c, NULL); - return 0; } |