Changeset View
Changeset View
Standalone View
Standalone View
head/sys/dev/cmx/cmx_pccard.c
Show First 20 Lines • Show All 89 Lines • ▼ Show 20 Lines | cmx_pccard_attach(device_t dev) | ||||
} | } | ||||
if ((rv = cmx_attach(dev)) != 0) { | if ((rv = cmx_attach(dev)) != 0) { | ||||
device_printf(dev, "cmx_attach() failed!\n"); | device_printf(dev, "cmx_attach() failed!\n"); | ||||
cmx_release_resources(dev); | cmx_release_resources(dev); | ||||
return rv; | return rv; | ||||
} | } | ||||
device_printf(dev, "attached\n"); | gone_in_dev(dev, 13, "pccard removed"); | ||||
return 0; | return 0; | ||||
} | } | ||||
static device_method_t cmx_pccard_methods[] = { | static device_method_t cmx_pccard_methods[] = { | ||||
DEVMETHOD(device_probe, cmx_pccard_probe), | DEVMETHOD(device_probe, cmx_pccard_probe), | ||||
DEVMETHOD(device_attach, cmx_pccard_attach), | DEVMETHOD(device_attach, cmx_pccard_attach), | ||||
DEVMETHOD(device_detach, cmx_detach), | DEVMETHOD(device_detach, cmx_detach), | ||||
Show All 11 Lines |