PERFORCE change 124063 for review

Christopher Davis loafier at FreeBSD.org
Wed Jul 25 03:56:28 UTC 2007


http://perforce.freebsd.org/chv.cgi?CH=124063

Change 124063 by loafier at 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)


More information about the p4-projects mailing list