fpga: Use device_get_match_data()
authorRob Herring <robh@kernel.org>
Fri, 6 Oct 2023 22:46:33 +0000 (17:46 -0500)
committerXu Yilun <yilun.xu@linux.intel.com>
Fri, 13 Oct 2023 15:17:16 +0000 (23:17 +0800)
commit4e807eb05dff41d500822f81744ec5f9c0591aa5
tree7daf6c659450fdcc7a8c31639a10029cd0696a86
parent6465e260f48790807eef06b583b38ca9789b6072
fpga: 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.

Also drop of_match_ptr for xlnx_pr_decoupler_of_match, which is not
necessary because DT is always used for this driver.

Signed-off-by: Rob Herring <robh@kernel.org>
Acked-by: Xu Yilun <yilun.xu@intel.com>
Link: https://lore.kernel.org/r/20231006224633.445035-1-robh@kernel.org
[yilun.xu@intel.com: merge the fix 20231012192149.1546368-1-robh@kernel.org]
Link: https://lore.kernel.org/r/20231012192149.1546368-1-robh@kernel.org
Signed-off-by: Xu Yilun <yilun.xu@linux.intel.com>
drivers/fpga/altera-hps2fpga.c
drivers/fpga/xilinx-pr-decoupler.c