Skip to content
Commit 8b43ef06 authored by Hans de Goede's avatar Hans de Goede Committed by Pavel Machek
Browse files

leds: simatic-ipc-leds: Don't directly deref ioremap_resource() returned ptr



Sparse (rightly) currently gives the following warning:

drivers/leds/simple/simatic-ipc-leds.c:155:40:
 sparse: sparse: incorrect type in assignment (different address spaces)
 expected void *static [toplevel] simatic_ipc_led_memory
 got void [noderef] __iomem *

Fix this by changing the type of simatic_ipc_led_memory to void __iomem *
and use readl()/writel() to access it.

Cc: Henning Schild <henning.schild@siemens.com>
Reported-by: default avatarkernel test robot <lkp@intel.com>
Signed-off-by: default avatarHans de Goede <hdegoede@redhat.com>
Tested-by: default avatarGerd Haeussler <gerd.haeussler.ext@siemens.com>
Signed-off-by: default avatarPavel Machek <pavel@ucw.cz>
parent a8f59497
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment