Commit c58caaab authored by Alexander Sverdlin's avatar Alexander Sverdlin Committed by Greg Kroah-Hartman

serial: 8250: of: Defer probe on missing IRQ

If the IRQ controller is not yet probed do not proceed with irq=0,
try to defer the probe.
Signed-off-by: default avatarAlexander Sverdlin <alexander.sverdlin@nokia.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent b29330d8
...@@ -144,6 +144,10 @@ static int of_platform_serial_setup(struct platform_device *ofdev, ...@@ -144,6 +144,10 @@ static int of_platform_serial_setup(struct platform_device *ofdev,
port->line = ret; port->line = ret;
port->irq = irq_of_parse_and_map(np, 0); port->irq = irq_of_parse_and_map(np, 0);
if (!port->irq) {
ret = -EPROBE_DEFER;
goto err_unprepare;
}
info->rst = devm_reset_control_get_optional_shared(&ofdev->dev, NULL); info->rst = devm_reset_control_get_optional_shared(&ofdev->dev, NULL);
if (IS_ERR(info->rst)) { if (IS_ERR(info->rst)) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment