Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

watchdog: ziirave_wdt: Convert to i2c's .probe_new()

The probe function doesn't make use of the i2c_device_id * parameter so it
can be trivially converted.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Link: https://lore.kernel.org/r/20221118224540.619276-597-uwe@kleine-koenig.org
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Wim Van Sebroeck <wim@linux-watchdog.org>

authored by

Uwe Kleine-König and committed by
Wim Van Sebroeck
0d9e42e3 4ea6b986

+2 -3
+2 -3
drivers/watchdog/ziirave_wdt.c
··· 593 593 reset_duration); 594 594 } 595 595 596 - static int ziirave_wdt_probe(struct i2c_client *client, 597 - const struct i2c_device_id *id) 596 + static int ziirave_wdt_probe(struct i2c_client *client) 598 597 { 599 598 int ret; 600 599 struct ziirave_wdt_data *w_priv; ··· 731 732 .name = "ziirave_wdt", 732 733 .of_match_table = zrv_wdt_of_match, 733 734 }, 734 - .probe = ziirave_wdt_probe, 735 + .probe_new = ziirave_wdt_probe, 735 736 .remove = ziirave_wdt_remove, 736 737 .id_table = ziirave_wdt_id, 737 738 };