reset: Use device_get_match_data()
authorRob Herring <robh@kernel.org>
Wed, 15 Nov 2023 20:58:48 +0000 (14:58 -0600)
committerPhilipp Zabel <p.zabel@pengutronix.de>
Tue, 28 Nov 2023 16:23:01 +0000 (17:23 +0100)
commitc1d884118f9b1544b39744f2c148fc87050488c1
tree2903bc66689ae57948bb76e935a05a40e2727e22
parent41df5d7d5e99fa9b15e9f7fec7f9a7f092a1440e
reset: 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>
Link: https://lore.kernel.org/r/20231115205848.3732609-1-robh@kernel.org
Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
drivers/reset/reset-npcm.c
drivers/reset/sti/reset-syscfg.c