aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/tty/hvc/hvc_opal.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/drivers/tty/hvc/hvc_opal.c b/drivers/tty/hvc/hvc_opal.c
index b7cd0ae7d927..510799311099 100644
--- a/drivers/tty/hvc/hvc_opal.c
+++ b/drivers/tty/hvc/hvc_opal.c
@@ -214,7 +214,13 @@ static int hvc_opal_probe(struct platform_device *dev)
214 dev->dev.of_node->full_name, 214 dev->dev.of_node->full_name,
215 boot ? " (boot console)" : ""); 215 boot ? " (boot console)" : "");
216 216
217 irq = opal_event_request(ilog2(OPAL_EVENT_CONSOLE_INPUT)); 217 irq = irq_of_parse_and_map(dev->dev.of_node, 0);
218 if (!irq) {
219 pr_info("hvc%d: No interrupts property, using OPAL event\n",
220 termno);
221 irq = opal_event_request(ilog2(OPAL_EVENT_CONSOLE_INPUT));
222 }
223
218 if (!irq) { 224 if (!irq) {
219 pr_err("hvc_opal: Unable to map interrupt for device %s\n", 225 pr_err("hvc_opal: Unable to map interrupt for device %s\n",
220 dev->dev.of_node->full_name); 226 dev->dev.of_node->full_name);