Commit 3ea903e2 authored by Uwe Kleine-König's avatar Uwe Kleine-König Committed by David S. Miller

net: dsa: Switch i2c drivers back to use .probe()

After commit b8a1a4cd ("i2c: Provide a temporary .probe_new()
call-back type"), all drivers being converted to .probe_new() and then
03c835f4 ("i2c: Switch .probe() to not take an id parameter") convert
back to (the new) .probe() to be able to eventually drop .probe_new() from
struct i2c_driver.
Signed-off-by: default avatarUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Reviewed-by: default avatarFlorian Fainelli <f.fainelli@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent b1f2abcf
...@@ -105,7 +105,7 @@ static struct i2c_driver lan9303_i2c_driver = { ...@@ -105,7 +105,7 @@ static struct i2c_driver lan9303_i2c_driver = {
.name = "LAN9303_I2C", .name = "LAN9303_I2C",
.of_match_table = lan9303_i2c_of_match, .of_match_table = lan9303_i2c_of_match,
}, },
.probe_new = lan9303_i2c_probe, .probe = lan9303_i2c_probe,
.remove = lan9303_i2c_remove, .remove = lan9303_i2c_remove,
.shutdown = lan9303_i2c_shutdown, .shutdown = lan9303_i2c_shutdown,
.id_table = lan9303_i2c_id, .id_table = lan9303_i2c_id,
......
...@@ -119,7 +119,7 @@ static struct i2c_driver ksz9477_i2c_driver = { ...@@ -119,7 +119,7 @@ static struct i2c_driver ksz9477_i2c_driver = {
.name = "ksz9477-switch", .name = "ksz9477-switch",
.of_match_table = ksz9477_dt_ids, .of_match_table = ksz9477_dt_ids,
}, },
.probe_new = ksz9477_i2c_probe, .probe = ksz9477_i2c_probe,
.remove = ksz9477_i2c_remove, .remove = ksz9477_i2c_remove,
.shutdown = ksz9477_i2c_shutdown, .shutdown = ksz9477_i2c_shutdown,
.id_table = ksz9477_i2c_id, .id_table = ksz9477_i2c_id,
......
...@@ -147,7 +147,7 @@ static struct i2c_driver xrs700x_i2c_driver = { ...@@ -147,7 +147,7 @@ static struct i2c_driver xrs700x_i2c_driver = {
.name = "xrs700x-i2c", .name = "xrs700x-i2c",
.of_match_table = of_match_ptr(xrs700x_i2c_dt_ids), .of_match_table = of_match_ptr(xrs700x_i2c_dt_ids),
}, },
.probe_new = xrs700x_i2c_probe, .probe = xrs700x_i2c_probe,
.remove = xrs700x_i2c_remove, .remove = xrs700x_i2c_remove,
.shutdown = xrs700x_i2c_shutdown, .shutdown = xrs700x_i2c_shutdown,
.id_table = xrs700x_i2c_id, .id_table = xrs700x_i2c_id,
......
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