watchdog: st_lpc: Use device_get_match_data()
authorRob Herring <robh@kernel.org>
Mon, 9 Oct 2023 21:13:48 +0000 (16:13 -0500)
committerWim Van Sebroeck <wim@linux-watchdog.org>
Sun, 29 Oct 2023 18:45:06 +0000 (19:45 +0100)
commitc7e2f4e672364604193d4592c4c3d276137d04c0
tree6e42830f5a2c4463d8a03e35c8db61fd03355b3d
parent725b6a89ed82e72fdcb5cb2c946c65aaa17910e6
watchdog: st_lpc: Use device_get_match_data()

Use preferred device_get_match_data() instead of of_match_device() to
get the driver match data. With this, adjust the includes to explicitly
include the correct headers.

Signed-off-by: Rob Herring <robh@kernel.org>
Reviewed-by: Patrice Chotard <patrice.chotard@foss.st.com>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Link: https://lore.kernel.org/r/20231009211356.3242037-18-robh@kernel.org
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Wim Van Sebroeck <wim@linux-watchdog.org>
drivers/watchdog/st_lpc_wdt.c