PERFORCE change 91696 for review
Warner Losh
imp at FreeBSD.org
Mon Feb 13 13:17:37 PST 2006
http://perforce.freebsd.org/chv.cgi?CH=91696
Change 91696 by imp at imp_Speedy on 2006/02/13 21:17:16
debug
Affected files ...
.. //depot/projects/arm/src/sys/arm/at91/ohci_atmelarm.c#4 edit
Differences ...
==== //depot/projects/arm/src/sys/arm/at91/ohci_atmelarm.c#4 (text+ko) ====
@@ -64,13 +64,13 @@
/* XXX where does it say so in the spec? */
sc->sc_bus.usbrev = USBREV_1_0;
- strlcpy(sc->sc_vendor, "Atmel", sizeof(sc->sc_vendor));
rid = MEM_RID;
sc->io_res = bus_alloc_resource_any(dev, SYS_RES_MEMORY, &rid,
RF_ACTIVE);
if (sc->io_res == NULL) {
- err = ENXIO;
+ printf("1\n");
+ err = ENOMEM;
goto error;
}
sc->iot = rman_get_bustag(sc->io_res);
@@ -80,11 +80,13 @@
sc->irq_res = bus_alloc_resource_any(dev, SYS_RES_IRQ, &rid,
RF_ACTIVE);
if (sc->irq_res == NULL) {
- err = ENXIO;
+ printf("2\n");
+ err = ENOMEM;
goto error;
}
sc->sc_bus.bdev = device_add_child(dev, "usb", -1);
if (sc->sc_bus.bdev == NULL) {
+ printf("3\n");
err = ENOMEM;
goto error;
}
@@ -93,9 +95,11 @@
err = bus_setup_intr(dev, sc->irq_res, INTR_TYPE_BIO, ohci_intr, sc,
&sc->ih);
if (err) {
+ printf("4\n");
err = ENXIO;
goto error;
}
+ strlcpy(sc->sc_vendor, "Atmel", sizeof(sc->sc_vendor));
err = ohci_init(sc);
if (!err) {
sc->sc_flags |= OHCI_SCFLG_DONEINIT;
More information about the p4-projects
mailing list