Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 83828
b: refs/heads/master
c: 0ba137e
h: refs/heads/master
v: v3
  • Loading branch information
Maciej W. Rozycki authored and Linus Torvalds committed Feb 7, 2008
1 parent 0e74d4c commit 70cc727
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 6 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: dbab81281d3227af3d8a04aa748c5f41befa5d43
refs/heads/master: 0ba137e23e8d8f5cb15778b44be281c5687afc49
20 changes: 15 additions & 5 deletions trunk/drivers/serial/dz.c
Original file line number Diff line number Diff line change
Expand Up @@ -794,18 +794,28 @@ static int __init dz_init(void)
dz_reset(&dz_ports[0]);
#endif

if (request_irq(dz_ports[0].port.irq, dz_interrupt,
IRQF_DISABLED, "DZ", &dz_ports[0]))
panic("Unable to register DZ interrupt");

ret = uart_register_driver(&dz_reg);
if (ret != 0)
return ret;
goto out;

ret = request_irq(dz_ports[0].port.irq, dz_interrupt, IRQF_DISABLED,
"DZ", &dz_ports[0]);
if (ret != 0) {
printk(KERN_ERR "dz: Cannot get IRQ %d!\n",
dz_ports[0].port.irq);
goto out_unregister;
}

for (i = 0; i < DZ_NB_PORT; i++)
uart_add_one_port(&dz_reg, &dz_ports[i].port);

return ret;

out_unregister:
uart_unregister_driver(&dz_reg);

out:
return ret;
}

module_init(dz_init);
Expand Down

0 comments on commit 70cc727

Please sign in to comment.