ARM/gpio: ep93xx: build standalone
authorArnd Bergmann <arnd@arndb.de>
Wed, 22 Aug 2018 20:41:01 +0000 (22:41 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Wed, 29 Aug 2018 07:08:25 +0000 (09:08 +0200)
commit4c2baed3a7e6fd72fb967d55dc67719e7f6ebcf6
treec23a249a0761d73330fb998aba9ed33c218ea571
parent0d1e31abcaf5a3f5ebff81fa0c1322c2b17e59dd
ARM/gpio: ep93xx: build standalone

As a preparation for multiplatform support, this ensures
that the ep93xx gpio driver can be built without any of
the platform specific header files. We pass the IRQ numbers
as a resource now, and use the virtual mmio base from the
already existing resource, rather than relying on the
hardwired virtual address from the header file.

Some numbers are now hardcoded that came from macros
in the past, but for all I can tell, the driver already
relied on the specific values.

Cc: arm@kernel.org
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Olof Johansson <olof@lixom.net>
Acked-by: Alexander Sverdlin <alexander.sverdlin@gmail.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
arch/arm/mach-ep93xx/core.c
drivers/gpio/gpio-ep93xx.c