summaryrefslogtreecommitdiffstats
path: root/drivers/reset/hisilicon/hi6220_reset.c
diff options
context:
space:
mode:
authorKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>2023-08-10 11:13:00 +0200
committerPhilipp Zabel <p.zabel@pengutronix.de>2023-11-24 11:26:19 +0100
commitb5ec294472794ed9ecba0cb4b8208372842e7e0d (patch)
tree54e8ef96ac785dd0bfe3ef78efe7e93db675e9ba /drivers/reset/hisilicon/hi6220_reset.c
parentLinux 6.7-rc1 (diff)
downloadlinux-b5ec294472794ed9ecba0cb4b8208372842e7e0d.tar.xz
linux-b5ec294472794ed9ecba0cb4b8208372842e7e0d.zip
reset: hisilicon: hi6220: fix Wvoid-pointer-to-enum-cast warning
'type' is an enum, thus cast of pointer on 64-bit compile test with W=1 causes: hi6220_reset.c:166:9: error: cast to smaller integer type 'enum hi6220_reset_ctrl_type' from 'const void *' [-Werror,-Wvoid-pointer-to-enum-cast] Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Link: https://lore.kernel.org/r/20230810091300.70197-1-krzysztof.kozlowski@linaro.org Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
Diffstat (limited to 'drivers/reset/hisilicon/hi6220_reset.c')
-rw-r--r--drivers/reset/hisilicon/hi6220_reset.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/reset/hisilicon/hi6220_reset.c b/drivers/reset/hisilicon/hi6220_reset.c
index 8d1fce18ded7..5c3267acd2b1 100644
--- a/drivers/reset/hisilicon/hi6220_reset.c
+++ b/drivers/reset/hisilicon/hi6220_reset.c
@@ -163,7 +163,7 @@ static int hi6220_reset_probe(struct platform_device *pdev)
if (!data)
return -ENOMEM;
- type = (enum hi6220_reset_ctrl_type)of_device_get_match_data(dev);
+ type = (uintptr_t)of_device_get_match_data(dev);
regmap = syscon_node_to_regmap(np);
if (IS_ERR(regmap)) {