]> www.infradead.org Git - users/jedix/linux-maple.git/commit
pinctrl: nuvoton: ma35d1: Fix an IS_ERR() vs NULL check
authorDan Carpenter <dan.carpenter@linaro.org>
Wed, 12 Jun 2024 10:43:33 +0000 (13:43 +0300)
committerLinus Walleij <linus.walleij@linaro.org>
Mon, 17 Jun 2024 09:01:47 +0000 (11:01 +0200)
commitd81889c15871f350b213566a43f09943f93fb706
treefdbdbdcf1f8a86c0a8607eaaa261353103a12b58
parent5224b7a936a61ab1bff2e9d16d3c5b7b48911eb7
pinctrl: nuvoton: ma35d1: Fix an IS_ERR() vs NULL check

The fwnode_iomap() function doesn't return error pointers, it returns
NULL.  It's the same as of_iomap() in that way.  Update the check
accordingly.

Fixes: ecc5bf868673 ("pinctrl: nuvoton: Add ma35d1 pinctrl and GPIO driver")
Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
Link: https://lore.kernel.org/r/840152f9-d3bb-410e-8164-4c5043e1983e@moroto.mountain
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/nuvoton/pinctrl-ma35.c