Thread (40 messages) 40 messages, 6 authors, 2019-08-15

Re: [PATCH 05/14] gpio: lpc32xx: allow building on non-lpc32xx targets

From: Arnd Bergmann <arnd@arndb.de>
Date: 2019-08-09 14:20:14
Also in: linux-arm-kernel, linux-gpio, linux-serial, linux-usb, linux-watchdog, lkml

On Tue, Aug 6, 2019 at 10:02 PM Sylvain Lemieux [off-list ref] wrote:
quoted
+       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 <redacted>
Tested-by: Sylvain Lemieux <redacted>
Ok, fixed now, along with addressing Bartosz' concerns.

       Arnd
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help