diff options
author | Uwe Kleine-König <u.kleine-koenig@pengutronix.de> | 2023-05-30 08:39:36 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2023-05-31 09:52:55 +0100 |
commit | 3ea903e2a523e9655e425ba8eae13733e9e80ac9 (patch) | |
tree | c57255786f91d1f6fd853dccf6405697123b06a3 /drivers/net/dsa/microchip | |
parent | b1f2abcf817d82b54764d1474424649feda6fe1b (diff) | |
download | lwn-3ea903e2a523e9655e425ba8eae13733e9e80ac9.tar.gz lwn-3ea903e2a523e9655e425ba8eae13733e9e80ac9.zip |
net: dsa: Switch i2c drivers back to use .probe()
After commit b8a1a4cd5a98 ("i2c: Provide a temporary .probe_new()
call-back type"), all drivers being converted to .probe_new() and then
03c835f498b5 ("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: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/dsa/microchip')
-rw-r--r-- | drivers/net/dsa/microchip/ksz9477_i2c.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/dsa/microchip/ksz9477_i2c.c b/drivers/net/dsa/microchip/ksz9477_i2c.c index 497be833f707..2710afad4f3a 100644 --- a/drivers/net/dsa/microchip/ksz9477_i2c.c +++ b/drivers/net/dsa/microchip/ksz9477_i2c.c @@ -119,7 +119,7 @@ static struct i2c_driver ksz9477_i2c_driver = { .name = "ksz9477-switch", .of_match_table = ksz9477_dt_ids, }, - .probe_new = ksz9477_i2c_probe, + .probe = ksz9477_i2c_probe, .remove = ksz9477_i2c_remove, .shutdown = ksz9477_i2c_shutdown, .id_table = ksz9477_i2c_id, |