mmc: sdhci-of-at91: Use of_device_get_match_data() helper
authorBean Huo <beanhuo@micron.com>
Wed, 2 Feb 2022 18:06:47 +0000 (19:06 +0100)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 14 Feb 2022 13:55:03 +0000 (14:55 +0100)
commit1ebe7a0a62f40c4c1f1b8f5b53a4e32074f8a820
treefbdcb5ef2306f34b659cc75797b79b8a08d490e7
parent341fde0ef869bccbb6ca0ed530dd9f5bbcbd16eb
mmc: sdhci-of-at91: Use of_device_get_match_data() helper

Only the device data is needed, not the entire struct of_device_id.
Use of_device_get_match_data() instead of open coding of_match_device().

Signed-off-by: Bean Huo <beanhuo@micron.com>
Link: https://lore.kernel.org/r/20220202180648.1252154-5-huobean@gmail.com
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/sdhci-of-at91.c