Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 13 Feb 2006 21:17:35 GMT
From:      Warner Losh <imp@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 91696 for review
Message-ID:  <200602132117.k1DLHZtK025811@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=91696

Change 91696 by imp@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;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200602132117.k1DLHZtK025811>