Reviewed by:tanimura
Fix boot panic introduced by newmidi code.
This commit is contained in:
Richard Seaman Jr. 2000-07-18 20:18:16 +00:00
parent ef36241a4a
commit 307754cbe2
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=63461

View File

@ -324,7 +324,8 @@ gusc_attach(device_t dev)
return (ENXIO);
}
bus_setup_intr(dev, scp->irq, INTR_TYPE_TTY, gusc_intr, scp, &ih);
if (scp->irq != NULL)
bus_setup_intr(dev, scp->irq, INTR_TYPE_TTY, gusc_intr, scp, &ih);
bus_generic_attach(dev);
return (0);