Linus Walleij
c0162a49e0
gpio: amd-fch: Drop const from resource
...
The build servers and linux-next are complaining like this:
drivers/gpio/gpio-amd-fch.c: In function 'amd_fch_gpio_probe':
drivers/gpio/gpio-amd-fch.c:164:49: warning: passing argument 2 of
'devm_ioremap_resource' discards 'const' qualifier from pointer
target type [-Wdiscarded-qualifiers]
priv->base = devm_ioremap_resource(&pdev->dev, &amd_fch_gpio_iores);
^~~~~~~~~~~~~~~~~~~
In file included from include/linux/platform_device.h:14, from
drivers/gpio/gpio-amd-fch.c:15:
include/linux/device.h:709:15: note: expected 'struct resource *'
but argument is of type 'const struct resource *'
void __iomem *devm_ioremap_resource(struct device *dev,struct resource *res);
^~~~~~~~~~~~~~~~~~~~~
Let's just remove "const" for now.
It is possible that devm_ioremap_resource() should rather
be constified so we can pass const resources as arguments.
But right now I just want to get rid of this build warning.
Fixes: e09d168f13f0 ("gpio: AMD G-Series PCH gpio driver")
Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
Reported-by: kbuild test robot <lkp@intel.com>
Reported-by: Anders Roxell <anders.roxell@linaro.org>
Cc: Enrico Weigelt <info@metux.net>
Tested-by: Anders Roxell <anders.roxell@linaro.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
2019-02-25 15:04:07 +01:00
..
2018-01-31 12:25:27 -08:00
2018-05-16 14:35:24 +02:00
2018-11-05 08:54:41 +01:00
2018-11-05 08:54:41 +01:00
2018-03-26 10:10:18 +02:00
2018-06-12 16:19:22 -07:00
2018-08-29 13:30:25 +02:00
2019-02-09 11:33:37 +01:00
2019-02-14 15:14:38 +01:00
2019-01-28 14:59:58 +01:00
2018-01-13 22:22:49 +01:00
2019-02-25 15:04:07 +01:00
2016-03-30 10:38:51 +02:00
2018-01-13 22:47:48 +01:00
2018-12-21 11:14:11 +01:00
2018-07-29 23:34:54 +02:00
2018-09-10 08:57:36 +02:00
2017-04-28 09:47:46 +02:00
2018-08-30 11:04:50 +02:00
2018-01-13 22:56:52 +01:00
2018-12-21 11:41:00 +01:00
2016-06-08 10:49:58 +02:00
2018-10-10 09:21:06 +02:00
2019-02-08 15:55:40 +02:00
2018-01-14 01:56:24 +01:00
2018-01-14 02:00:10 +01:00
2018-01-14 02:00:10 +01:00
2019-02-21 13:05:52 +01:00
2018-03-19 01:50:07 +01:00
2018-11-05 08:54:41 +01:00
2019-02-17 21:59:33 +01:00
2018-08-06 23:46:55 +02:00
2018-09-10 08:48:24 +02:00
2017-08-01 13:43:55 +02:00
2019-01-22 15:48:44 +01:00
2019-02-25 10:24:07 +01:00
2018-05-16 14:35:24 +02:00
2018-11-05 08:54:41 +01:00
2018-11-19 15:09:22 +01:00
2019-02-09 11:33:37 +01:00
2019-01-21 14:34:45 +01:00
2018-10-01 12:27:19 +02:00
2018-12-07 17:34:07 +02:00
2018-12-07 17:34:07 +02:00
2017-12-02 22:42:21 +01:00
2018-08-10 23:19:17 +02:00
2018-03-19 01:50:30 +01:00
2018-03-19 01:50:31 +01:00
2018-12-07 11:10:14 +01:00
2017-10-25 11:25:38 +02:00
2018-05-16 14:35:24 +02:00
2018-05-16 14:35:24 +02:00
2018-05-16 14:35:24 +02:00
2017-07-31 15:26:57 +02:00
2018-12-10 09:10:46 +01:00
2018-05-16 14:35:24 +02:00
2018-12-14 14:27:41 +01:00
2019-02-14 15:14:37 +01:00
2018-05-16 14:35:24 +02:00
2018-06-18 07:55:30 +02:00
2018-09-13 11:16:54 +02:00
2018-12-21 09:23:45 +01:00
2018-12-19 18:35:45 +00:00
2017-10-31 13:13:34 +01:00
2018-05-16 14:35:24 +02:00
2018-05-16 14:35:24 +02:00
2018-06-18 07:55:30 +02:00
2018-12-07 17:34:08 +02:00
2018-07-29 23:13:09 +02:00
2018-05-16 14:35:24 +02:00
2018-09-25 09:08:48 +02:00
2019-02-19 17:42:29 +01:00
2017-10-25 11:25:40 +02:00
2016-02-16 00:20:03 +01:00
2019-02-08 15:55:41 +02:00
2018-12-07 10:47:24 +01:00
2019-01-10 16:19:11 +01:00
2019-02-25 13:42:46 +01:00
2018-12-21 11:29:57 +01:00
2018-05-24 14:22:04 +02:00
2018-12-28 20:00:21 -08:00
2018-05-24 14:25:13 +02:00
2019-02-20 10:30:45 +01:00
2019-02-17 21:59:33 +01:00
2018-12-07 17:34:08 +02:00
2018-11-05 08:54:42 +01:00
2018-11-05 08:54:42 +01:00
2018-07-29 21:55:33 +02:00
2018-11-05 08:54:42 +01:00
2019-02-21 13:18:49 +01:00
2018-11-16 23:06:29 +01:00
2018-12-17 15:28:30 +01:00
2018-07-02 16:00:49 +02:00
2019-01-21 14:59:50 +01:00
2018-07-02 16:00:49 +02:00
2017-12-22 15:24:31 +01:00
2018-07-02 16:00:49 +02:00
2019-01-11 10:34:37 +01:00
2018-11-05 08:54:42 +01:00
2018-12-07 17:34:08 +02:00
2018-09-28 09:30:42 +02:00
2018-12-07 17:34:08 +02:00
2018-07-02 16:00:49 +02:00
2018-03-02 11:00:43 +01:00
2018-07-02 16:00:49 +02:00
2018-07-02 16:00:49 +02:00
2018-07-02 16:00:49 +02:00
2018-10-10 10:33:11 +02:00
2018-08-29 08:53:37 +02:00
2017-11-08 14:06:21 +01:00
2019-02-14 15:14:38 +01:00
2019-02-19 21:48:20 +01:00
2018-06-12 16:19:22 -07:00
2018-08-10 23:04:27 +02:00
2016-09-13 10:35:56 +02:00
2018-09-04 08:22:47 +02:00
2018-09-04 08:22:47 +02:00
2017-01-26 15:27:37 +01:00
2018-09-04 08:22:47 +02:00
2018-09-04 08:22:47 +02:00
2018-02-23 15:26:42 +01:00
2019-02-21 13:19:52 +01:00
2016-10-21 14:55:07 +02:00
2018-05-16 14:35:24 +02:00
2018-09-04 08:22:47 +02:00
2018-09-10 08:48:51 +02:00
2018-09-10 08:49:22 +02:00
2016-02-23 20:35:50 +05:30
2018-12-07 13:40:28 +01:00
2019-01-28 15:28:43 +01:00
2018-09-17 10:55:24 -07:00
2018-09-17 10:55:24 -07:00
2018-09-17 10:55:24 -07:00
2019-02-08 15:55:41 +02:00
2018-01-09 14:51:00 +01:00
2018-09-17 10:55:24 -07:00
2018-09-17 10:55:24 -07:00
2018-09-17 10:55:24 -07:00
2018-11-05 08:54:42 +01:00
2018-08-06 23:46:55 +02:00
2017-03-06 14:35:22 +01:00
2018-08-10 23:19:17 +02:00
2018-09-17 10:55:24 -07:00
2018-04-27 01:06:21 +02:00
2018-09-17 10:55:24 -07:00
2018-09-04 08:22:47 +02:00
2017-11-08 14:06:21 +01:00
2019-02-13 10:36:54 +01:00
2019-02-17 21:59:33 +01:00
2018-10-01 13:15:06 +02:00
2018-12-11 01:04:23 +00:00
2018-09-25 09:08:48 +02:00
2019-02-21 13:12:04 +01:00
2018-09-25 09:08:48 +02:00
2019-02-17 21:59:33 +01:00
2019-02-13 09:10:14 +01:00
2019-02-22 17:26:52 +01:00
2019-02-22 17:26:52 +01:00
2018-11-05 08:54:40 +01:00