]> git.baikalelectronics.ru Git - kernel.git/commit
mfd: lpc_sch: Rename GPIOBASE to prevent build error
authorRandy Dunlap <rdunlap@infradead.org>
Tue, 7 Sep 2021 00:19:49 +0000 (17:19 -0700)
committerLee Jones <lee.jones@linaro.org>
Tue, 7 Sep 2021 07:44:07 +0000 (08:44 +0100)
commitec6d59366af6afa3d3a83ddc7c927cebb6ca12f8
tree31869b418f08169e099e65ab2fdf7eb7a31dad48
parent4407ce017130a7205cf3e1dc97ce42b88115a55d
mfd: lpc_sch: Rename GPIOBASE to prevent build error

One MIPS platform (mach-rc32434) defines GPIOBASE. This macro
conflicts with one of the same name in lpc_sch.c. Rename the latter one
to prevent the build error.

../drivers/mfd/lpc_sch.c:25: error: "GPIOBASE" redefined [-Werror]
   25 | #define GPIOBASE        0x44
../arch/mips/include/asm/mach-rc32434/rb.h:32: note: this is the location of the previous definition
   32 | #define GPIOBASE        0x050000

Cc: Denis Turischev <denis@compulab.co.il>
Fixes: ad1f88037b76 ("mfd: Introduce lpc_sch for Intel SCH LPC bridge")
Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
drivers/mfd/lpc_sch.c