• Randy Dunlap's avatar
    mfd: lpc_sch: Rename GPIOBASE to prevent build error · cdff1eda
    Randy Dunlap authored
    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: e82c60ae ("mfd: Introduce lpc_sch for Intel SCH LPC bridge")
    Signed-off-by: default avatarRandy Dunlap <rdunlap@infradead.org>
    Signed-off-by: default avatarLee Jones <lee.jones@linaro.org>
    cdff1eda
lpc_sch.c 4.4 KB