]> git.ipfire.org Git - people/arne_f/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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 22 Sep 2021 10:39:33 +0000 (12:39 +0200)
commitdc2ebd4105b0759969b2c35a52182131cfb90aa8
tree49a3399a8cce05bb64f1effd918c17b08e047b53
parent4666248379e95f659710e2f5ea69883cf799b40b
mfd: lpc_sch: Rename GPIOBASE to prevent build error

[ Upstream commit cdff1eda69326fb46de10c5454212b3efcf4bb41 ]

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: e82c60ae7d3a ("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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/mfd/lpc_sch.c