Changeset View
Changeset View
Standalone View
Standalone View
head/sys/dev/an/if_an_pccard.c
Show First 20 Lines • Show All 150 Lines • ▼ Show 20 Lines | an_pccard_attach(device_t dev) | ||||
/* | /* | ||||
* Must setup the interrupt after the an_attach to prevent racing. | * Must setup the interrupt after the an_attach to prevent racing. | ||||
*/ | */ | ||||
error = bus_setup_intr(dev, sc->irq_res, INTR_TYPE_NET, | error = bus_setup_intr(dev, sc->irq_res, INTR_TYPE_NET, | ||||
NULL, an_intr, sc, &sc->irq_handle); | NULL, an_intr, sc, &sc->irq_handle); | ||||
fail: | fail: | ||||
if (error) | if (error) | ||||
an_release_resources(dev); | an_release_resources(dev); | ||||
else | |||||
gone_in_dev(dev, 13, "pccard removed"); | |||||
return (error); | return (error); | ||||
} | } |