net: can: Use device_get_match_data()
authorRob Herring <robh@kernel.org>
Fri, 1 Sep 2023 19:36:49 +0000 (14:36 -0500)
committerRob Herring <robh@kernel.org>
Fri, 19 Jan 2024 14:08:53 +0000 (08:08 -0600)
commit5e6c3454b40594c6f1d398254e7b4005494f9638
tree109e2fd97bd35d171bfb98a262b1e0b645d81752
parent61c2ef4b6cb019946479baf0aeded648081bfb5c
net: can: 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.

Error checking for matching and match data was not necessary as matching
is always successful if we're already in probe and the match tables always
have data pointers.

Signed-off-by: Rob Herring <robh@kernel.org>
drivers/net/can/c_can/c_can_platform.c
drivers/net/can/flexcan/flexcan-core.c
drivers/net/can/mscan/mpc5xxx_can.c
drivers/net/can/xilinx_can.c