Skip to content

Commit abd1c6a

Browse files
groeckWim Van Sebroeck
authored andcommitted
watchdog: ixp4xx_wdt: Fix address space warning
sparse reports the following address space warning. drivers/watchdog/ixp4xx_wdt.c:122:20: sparse: incorrect type in assignment (different address spaces) drivers/watchdog/ixp4xx_wdt.c:122:20: sparse: expected void [noderef] __iomem *base drivers/watchdog/ixp4xx_wdt.c:122:20: sparse: got void *platform_data Add a typecast to solve the problem. Fixes: 21a0a29 ("watchdog: ixp4xx: Rewrite driver to use core") Cc: Linus Walleij <[email protected]> Reviewed-by: Linus Walleij <[email protected]> Signed-off-by: Guenter Roeck <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Wim Van Sebroeck <[email protected]>
1 parent bcc3e70 commit abd1c6a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/watchdog/ixp4xx_wdt.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ static int ixp4xx_wdt_probe(struct platform_device *pdev)
119119
iwdt = devm_kzalloc(dev, sizeof(*iwdt), GFP_KERNEL);
120120
if (!iwdt)
121121
return -ENOMEM;
122-
iwdt->base = dev->platform_data;
122+
iwdt->base = (void __iomem *)dev->platform_data;
123123

124124
/*
125125
* Retrieve rate from a fixed clock from the device tree if

0 commit comments

Comments
 (0)