* handles correctly failures during setup

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33278 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Jérôme Duval 2009-09-24 22:40:33 +00:00
parent b5929aa12e
commit 430889581a

View File

@ -483,7 +483,11 @@ es1370_setup(es1370_dev * card)
snooze(50000); // 50 ms
PRINT(("installing interrupt : %lx\n", card->config.irq));
install_io_interrupt_handler(card->config.irq, es1370_int, card, 0);
err = install_io_interrupt_handler(card->config.irq, es1370_int, card, 0);
if (err != B_OK) {
PRINT(("failed to install interrupt\n"));
return err;
}
if ((err = es1370_init(card)))
return (err);