mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-01-08 14:13:53 +00:00
gpio: davinci: Remove redundant dev_err_probe()
There is no need to call the dev_err_probe() function directly to print a custom message when handling an error from platform_get_irq() function as it is going to display an appropriate error message in case of a failure. Signed-off-by: Ruan Jinjie <ruanjinjie@huawei.com> Reviewed-by: Andy Shevchenko <andy@kernel.org> Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
This commit is contained in:
parent
659ad5f7ef
commit
73561d2816
@ -236,7 +236,7 @@ static int davinci_gpio_probe(struct platform_device *pdev)
|
||||
for (i = 0; i < nirq; i++) {
|
||||
chips->irqs[i] = platform_get_irq(pdev, i);
|
||||
if (chips->irqs[i] < 0)
|
||||
return dev_err_probe(dev, chips->irqs[i], "IRQ not populated\n");
|
||||
return chips->irqs[i];
|
||||
}
|
||||
|
||||
chips->chip.label = dev_name(dev);
|
||||
|
Loading…
Reference in New Issue
Block a user