platform: use dev_err_probe() in platform_get_irq_byname()

The commit 2043727c28 ("driver core: platform: Make use of the helper
function dev_err_probe()") missed to also convert platform_get_irq_byname()
for some strange reason -- do that now.

Signed-off-by: Sergey Shtylyov <s.shtylyov@omp.ru>
Link: https://lore.kernel.org/r/11a4aeb2-721c-56a9-919b-f356a30720e0@omp.ru
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Sergey Shtylyov 2022-02-04 23:25:23 +03:00 committed by Greg Kroah-Hartman
parent aa21a1bf97
commit 27446562a1
1 changed files with 3 additions and 3 deletions

View File

@ -467,9 +467,9 @@ int platform_get_irq_byname(struct platform_device *dev, const char *name)
int ret; int ret;
ret = __platform_get_irq_byname(dev, name); ret = __platform_get_irq_byname(dev, name);
if (ret < 0 && ret != -EPROBE_DEFER) if (ret < 0)
dev_err(&dev->dev, "IRQ %s not found\n", name); return dev_err_probe(&dev->dev, ret, "IRQ %s not found\n",
name);
return ret; return ret;
} }
EXPORT_SYMBOL_GPL(platform_get_irq_byname); EXPORT_SYMBOL_GPL(platform_get_irq_byname);