Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

mmc: meson-gx: drop of_match_ptr from of_device_id table

The driver can match only via the DT table so the table should be always
used and the of_match_ptr does not have any sense (this also allows ACPI
matching via PRP0001, even though it is not relevant here). This fixes
compile warning (!CONFIG_OF && !CONFIG_MODULES):

drivers/mmc/host/meson-gx-mmc.c:1252:34: warning:
‘meson_mmc_of_match’ defined but not used [-Wunused-const-variable=]

Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>
Acked-by: Kevin Hilman <khilman@baylibre.com>
Link: https://lore.kernel.org/r/20201103163046.14336-1-krzk@kernel.org
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>

authored by

Krzysztof Kozlowski and committed by
Ulf Hansson
e2c01e91 5eefe22d

+1 -1
+1 -1
drivers/mmc/host/meson-gx-mmc.c
··· 1265 1265 .driver = { 1266 1266 .name = DRIVER_NAME, 1267 1267 .probe_type = PROBE_PREFER_ASYNCHRONOUS, 1268 - .of_match_table = of_match_ptr(meson_mmc_of_match), 1268 + .of_match_table = meson_mmc_of_match, 1269 1269 }, 1270 1270 }; 1271 1271