watchdog: ziirave_wdt: Switch i2c driver back to use .probe()
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Thu, 25 May 2023 21:08:37 +0000 (23:08 +0200)
committerWim Van Sebroeck <wim@linux-watchdog.org>
Mon, 26 Jun 2023 12:30:05 +0000 (14:30 +0200)
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: Guenter Roeck <linux@roeck-us.net>
Link: https://lkml.kernel.org/r/20230525210837.735447-1-u.kleine-koenig@pengutronix.de
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Wim Van Sebroeck <wim@linux-watchdog.org>
drivers/watchdog/ziirave_wdt.c

index 21ca08a..5ed33df 100644 (file)
@@ -731,7 +731,7 @@ static struct i2c_driver ziirave_wdt_driver = {
                .name = "ziirave_wdt",
                .of_match_table = zrv_wdt_of_match,
        },
-       .probe_new = ziirave_wdt_probe,
+       .probe = ziirave_wdt_probe,
        .remove = ziirave_wdt_remove,
        .id_table = ziirave_wdt_id,
 };