make irq specifier to be provided when assigining irq
[lunaix-os.git] / lunaix-os / hal / char / uart / 16x50_isa.c
index 7c82367e2d18f8625d0d074d6d9e533b406dfb1d..152317a5cdeb71dc97eace2d0c49287263b612cb 100644 (file)
@@ -44,8 +44,8 @@ isa16x50_create_once(struct device_def* def)
              *  Since these irqs are overlapped, this particular setup is needed
              * to avoid double-bind
              */
-            uart->irq = irq_declare_line(com_irq_handler, irq, NULL);
-            irq_assign(irq_owning_domain(sdev->dev), uart->irq);
+            uart->irq = irq_declare_line(com_irq_handler, irq);
+            irq_assign(irq_owning_domain(sdev->dev), uart->irq, NULL);
             *((volatile int*)irqs[i]) = 0;
         }