]> git.baikalelectronics.ru Git - kernel.git/commit
pinctrl: iproc-gpio: Remove redundant error printing in iproc_gpio_probe()
authorZhen Lei <thunder.leizhen@huawei.com>
Tue, 11 May 2021 08:51:26 +0000 (16:51 +0800)
committerLinus Walleij <linus.walleij@linaro.org>
Wed, 19 May 2021 23:37:32 +0000 (01:37 +0200)
commite5771a8f2b031557c4e520197653c31a4d5f9b2b
tree023796c8fa4453da6655b94963b40ea51d94b2c1
parentc46008fb20da54eb4ea2ec5e49929c47b5269835
pinctrl: iproc-gpio: Remove redundant error printing in iproc_gpio_probe()

When devm_ioremap_resource() fails, a clear enough error message will be
printed by its subfunction __devm_ioremap_resource(). The error
information contains the device name, failure cause, and possibly resource
information.

Therefore, remove the error printing here to simplify code and reduce the
binary size.

Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Zhen Lei <thunder.leizhen@huawei.com>
Acked-by: Ray Jui <ray.jui@broadcom.com>
Link: https://lore.kernel.org/r/20210511085126.4287-1-thunder.leizhen@huawei.com
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/bcm/pinctrl-iproc-gpio.c