From: Fabio Estevam Date: Mon, 12 Feb 2018 02:38:46 +0000 (-0200) Subject: rtc: mxc_v2: Fix _iomem pointer notation X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=588519ff16552c5a6f6a189767692db6689cadad;p=linux.git rtc: mxc_v2: Fix _iomem pointer notation Fix the iomem pointer notation in order to fix the following sparse warnings: drivers/rtc/rtc-mxc_v2.c:280:18: warning: incorrect type in argument 1 (different address spaces) drivers/rtc/rtc-mxc_v2.c:280:18: expected void const volatile [noderef] *addr drivers/rtc/rtc-mxc_v2.c:280:18: got void *[noderef] ioaddr drivers/rtc/rtc-mxc_v2.c:329:44: warning: incorrect type in argument 1 (different address spaces) drivers/rtc/rtc-mxc_v2.c:329:44: expected void *[noderef] ioaddr drivers/rtc/rtc-mxc_v2.c:329:44: got void [noderef] * drivers/rtc/rtc-mxc_v2.c:339:44: warning: incorrect type in argument 1 (different address spaces) drivers/rtc/rtc-mxc_v2.c:339:44: expected void *[noderef] ioaddr drivers/rtc/rtc-mxc_v2.c:339:44: got void [noderef] * Signed-off-by: Fabio Estevam Signed-off-by: Alexandre Belloni --- diff --git a/drivers/rtc/rtc-mxc_v2.c b/drivers/rtc/rtc-mxc_v2.c index 784221dfc9c7a..9e14efb990b24 100644 --- a/drivers/rtc/rtc-mxc_v2.c +++ b/drivers/rtc/rtc-mxc_v2.c @@ -273,7 +273,7 @@ static const struct rtc_class_ops mxc_rtc_ops = { .alarm_irq_enable = mxc_rtc_alarm_irq_enable, }; -static int mxc_rtc_wait_for_flag(void *__iomem ioaddr, int flag) +static int mxc_rtc_wait_for_flag(void __iomem *ioaddr, int flag) { unsigned int timeout = REG_READ_TIMEOUT;