mirror of
https://github.com/torvalds/linux.git
synced 2024-11-22 20:22:09 +00:00
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:
parent
aa21a1bf97
commit
27446562a1
@ -467,9 +467,9 @@ int platform_get_irq_byname(struct platform_device *dev, const char *name)
|
||||
int ret;
|
||||
|
||||
ret = __platform_get_irq_byname(dev, name);
|
||||
if (ret < 0 && ret != -EPROBE_DEFER)
|
||||
dev_err(&dev->dev, "IRQ %s not found\n", name);
|
||||
|
||||
if (ret < 0)
|
||||
return dev_err_probe(&dev->dev, ret, "IRQ %s not found\n",
|
||||
name);
|
||||
return ret;
|
||||
}
|
||||
EXPORT_SYMBOL_GPL(platform_get_irq_byname);
|
||||
|
Loading…
Reference in New Issue
Block a user