Skip to content
Unverified Commit 3b08f52c authored by Rob Herring's avatar Rob Herring Committed by Xu Yilun
Browse files

fpga: altera-ps-spi: Use spi_get_device_match_data()



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

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

Signed-off-by: default avatarRob Herring <robh@kernel.org>
Acked-by: default avatarXu Yilun <yilun.xu@intel.com>
Link: https://lore.kernel.org/r/20231006224624.444857-1-robh@kernel.org


[yilun.xu@intel.com: drop of_match_ptr for of_ef_match]
Signed-off-by: default avatarXu Yilun <yilun.xu@linux.intel.com>
parent 4e807eb0
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment