diff options
| author | Krzysztof Kozlowski <[email protected]> | 2017-05-23 20:36:53 +0200 |
|---|---|---|
| committer | Krzysztof Kozlowski <[email protected]> | 2017-06-07 20:40:48 +0200 |
| commit | a453f3693f2aa9ebba623f8cff1e3d7c5df96ddd (patch) | |
| tree | c66cb850e2c5f76e255f9651e6997644cb5657af /net/switchdev/switchdev.c | |
| parent | a1ea9a400f5c76cdbe31a8f5c3154f464d84b803 (diff) | |
pinctrl: samsung: Explicitly cast pointer returned by of_iomap() to iomem
For S5Pv210 retention control, the driver stores the iomem pointer from
of_iomap() under a void pointer member. This makes sparse unhappy:
drivers/pinctrl/samsung/pinctrl-exynos.c:664:36: warning: incorrect type in argument 1 (different address spaces)
drivers/pinctrl/samsung/pinctrl-exynos.c:664:36: expected void const volatile [noderef] <asn:2>*addr
drivers/pinctrl/samsung/pinctrl-exynos.c:664:36: got void *
The iomem pointer is used safely (stored under priv by
s5pv210_retention_init(), used by s5pv210_retention_disable()) thus we
can add explicit casts to iomem to silence the warning.
Signed-off-by: Krzysztof Kozlowski <[email protected]>
Diffstat (limited to 'net/switchdev/switchdev.c')
0 files changed, 0 insertions, 0 deletions