mmc: jz4740: Fix Wvoid-pointer-to-enum-cast warning

"jz4740" is an enum, thus cast of pointer on 64-bit compile test with
clang W=1 causes:

  jz4740_mmc.c:1055:18: error: cast to smaller integer type 'enum jz4740_mmc_version' from 'const void *' [-Werror,-Wvoid-pointer-to-enum-cast]

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com>
Reviewed-by: Paul Cercueil <paul@crapouillou.net>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
This commit is contained in:
Krzysztof Kozlowski 2025-12-24 13:44:34 +01:00 committed by Ulf Hansson
parent 4e709d5d62
commit f6b3889812

View File

@ -1052,7 +1052,7 @@ static int jz4740_mmc_probe(struct platform_device* pdev)
host = mmc_priv(mmc);
/* Default if no match is JZ4740 */
host->version = (enum jz4740_mmc_version)device_get_match_data(&pdev->dev);
host->version = (unsigned long)device_get_match_data(&pdev->dev);
ret = mmc_of_parse(mmc);
if (ret)