Hi Arnd, On Wed, Jul 31, 2019 at 4:00 PM Arnd Bergmann <arnd@xxxxxxxx> wrote: > > The driver uses hardwire MMIO addresses instead of the data > that is passed in device tree. Change it over to only > hardcode the register offset values and allow compile-testing. > > Signed-off-by: Arnd Bergmann <arnd@xxxxxxxx> > --- > drivers/gpio/Kconfig | 8 +++++ > drivers/gpio/Makefile | 2 +- > drivers/gpio/gpio-lpc32xx.c | 63 ++++++++++++++++++++++++------------- > 3 files changed, 50 insertions(+), 23 deletions(-) > [...] > diff --git a/drivers/gpio/gpio-lpc32xx.c b/drivers/gpio/gpio-lpc32xx.c > index 24885b3db3d5..548f7cb69386 100644 > --- a/drivers/gpio/gpio-lpc32xx.c > +++ b/drivers/gpio/gpio-lpc32xx.c [...] > @@ -498,6 +509,10 @@ static int lpc32xx_gpio_probe(struct platform_device *pdev) > { > int i; > > + gpio_reg_base = devm_platform_ioremap_resource(pdev, 0); > + if (gpio_reg_base) > + return -ENXIO; The probe function will always return an error. Please replace the previous 2 lines with: if (IS_ERR(gpio_reg_base)) return PTR_ERR(gpio_reg_base); You can add my acked-by and tested-by in the v2 patch. Acked-by: Sylvain Lemieux <slemieux.tyco@xxxxxxxxx> Tested-by: Sylvain Lemieux <slemieux.tyco@xxxxxxxxx> > + > for (i = 0; i < ARRAY_SIZE(lpc32xx_gpiochip); i++) { > if (pdev->dev.of_node) { > lpc32xx_gpiochip[i].chip.of_xlate = lpc32xx_of_xlate; > @@ -527,3 +542,7 @@ static struct platform_driver lpc32xx_gpio_driver = { > }; > > module_platform_driver(lpc32xx_gpio_driver); > + > +MODULE_AUTHOR("Kevin Wells <kevin.wells@xxxxxxx>"); > +MODULE_LICENSE("GPL"); > +MODULE_DESCRIPTION("GPIO driver for LPC32xx SoC"); > -- > 2.20.0 > Sylvain