serial: esp32_uart: Use device_get_match_data()
authorRob Herring <robh@kernel.org>
Thu, 7 Dec 2023 16:26:31 +0000 (10:26 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 15 Dec 2023 13:20:00 +0000 (14:20 +0100)
commit3d19ff562d0618a17c4f2c42c8fc84de4e2880e2
treeabee916eeb2074a620697659d416fb100c6536f4
parent2600d9939440d608e1c8128e9e47e7948c024442
serial: esp32_uart: 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 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>
Link: https://lore.kernel.org/r/20231207162632.2650356-2-robh@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/esp32_uart.c