gpio: amd-fch: Drop const from resource
Linus Walleij authored
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: e09d168f

 ("gpio: AMD G-Series PCH gpio driver")
Reported-by: default avatarStephen Rothwell <sfr@canb.auug.org.au>
Reported-by: default avatarkbuild test robot <lkp@intel.com>
Reported-by: default avatarAnders Roxell <anders.roxell@linaro.org>
Cc: Enrico Weigelt <info@metux.net>
Tested-by: default avatarAnders Roxell <anders.roxell@linaro.org>
Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
c0162a49
Name Last commit Last update
Documentation gpio: ixp4xx: Add DT bindings
LICENSES Merge tag 'docs-4.20' of git://git.lwn.net/linux
arch Merge branch 'ib-qcom-ssbi' into devel
block Merge tag 'for-linus-20190209' of git://git.kernel.dk/linux-block
certs kbuild: remove redundant target cleaning on failure
crypto crypto: sm3 - fix undefined shift by >= width of value
drivers gpio: amd-fch: Drop const from resource
firmware kbuild: change filechk to surround the given command with { }
fs Merge tag 'for-linus-20190209' of git://git.kernel.dk/linux-block
include gpio: AMD G-Series PCH gpio driver
init psi: clarify the Kconfig text for the default-disable option
ipc ipc: IPCMNI limit check for semmni
kernel Merge branch 'ib-qcom-ssbi' into devel
lib Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
mm mm: migrate: don't rely on __PageMovable() of newpage after unlocking it
net Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
samples samples: mei: use /dev/mei0 instead of /dev/mei
scripts Merge tag 'gcc-plugins-v5.0-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/kees/linux
security apparmor: Fix aa_label_build() error handling for failed merges
sound Merge tag 'sound-5.0-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound
tools Merge branch 'perf-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
usr user/Makefile: Fix typo and capitalization in comment section
virt kvm: fix kvm_ioctl_create_device() reference counting (CVE-2019-6974)
.clang-format clang-format: Update .clang-format with the latest for_each macro list
.cocciconfig scripts: add Linux .cocciconfig for coccinelle
.get_maintainer.ignore
.gitattributes
.gitignore
.mailmap
COPYING
CREDITS
Kbuild
Kconfig
MAINTAINERS
Makefile
README
Linux kernel
============

There are several guides for kernel developers and users. These guides can
be rendered in a number of formats, like HTML and PDF. Please read
Documentation/admin-guide/README.rst first.

In order to build the documentation, use ``make htmldocs`` or
``make pdfdocs``.  The formatted documentation can also be read online at:

    https://www.kernel.org/doc/html/latest/

There are various text files in the Documentation/ subdirectory,
several of them using the Restructured Text markup notation.

Please read the Documentation/process/changes.rst file, as it contains the
requirements for building and running the kernel, and information about
the problems which may result by upgrading your kernel.