Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 25 Jul 2007 03:56:28 GMT
From:      Christopher Davis <loafier@FreeBSD.org>
To:        Perforce Change Reviews <perforce@FreeBSD.org>
Subject:   PERFORCE change 124063 for review
Message-ID:  <200707250356.l6P3uSEI044890@repoman.freebsd.org>

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

Change 124063 by loafier@chrisdsoc on 2007/07/25 03:56:22

	Fix typos in cmi.c
	Compiles -- haven't tested

Affected files ...

.. //depot/projects/soc2007/loafier_busalloc/src/sys/dev/sound/pci/cmi.c#3 edit

Differences ...

==== //depot/projects/soc2007/loafier_busalloc/src/sys/dev/sound/pci/cmi.c#3 (text+ko) ====

@@ -108,7 +108,7 @@
 
 static struct resource_spec cmi_res_spec[] = {
 	{SYS_RES_IOPORT, PCIR_BAR(0), RF_ACTIVE},
-	{SYS_RES_IRQ, 0, RF_ACTIVE | RF_SHARABLE},
+	{SYS_RES_IRQ, 0, RF_ACTIVE | RF_SHAREABLE},
 	{-1, 0, 0}
 };
 
@@ -884,7 +884,7 @@
 }
 
 static void
-cmi_destroy(device_t dev, sc_info *sc)
+cmi_destroy(device_t dev, struct sc_info *sc)
 {
 	if (!sc)
 		return;
@@ -893,7 +893,7 @@
 		bus_dma_tag_destroy(sc->parent_dmat);
 	if (sc->ih)
 		bus_teardown_intr(dev, sc->res[RES_IRQ], sc->ih);
-	bus_release_resources(dev, sc->res, cmi_res_spec);
+	bus_release_resources(dev, cmi_res_spec, sc->res);
 	if (sc->lock)
 		snd_mtxfree(sc->lock);
 
@@ -942,7 +942,7 @@
 	pci_enable_io(dev, SYS_RES_IOPORT);
 	sc->dev = dev;
 
-	if (bus_alloc_resources(dev, sc->res, cmi_res_spec) != 0)
+	if (bus_alloc_resources(dev, cmi_res_spec, sc->res) != 0)
 		goto bad;
 
 	if (0)



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