PERFORCE change 138526 for review
Oleksandr Tymoshenko
gonzo at FreeBSD.org
Tue Mar 25 16:04:06 UTC 2008
http://perforce.freebsd.org/chv.cgi?CH=138526
Change 138526 by gonzo at gonzo_jeeves on 2008/03/25 16:03:47
o Remove unused variable
o "#if 0" unused function
Affected files ...
.. //depot/projects/mips2-jnpr/src/sys/mips/mips32/idt/idtpci.c#3 edit
Differences ...
==== //depot/projects/mips2-jnpr/src/sys/mips/mips32/idt/idtpci.c#3 (text+ko) ====
@@ -478,10 +478,8 @@
struct idtpci_softc *sc = device_get_softc(bus);
struct resource *rv = NULL;
struct rman *rm1, *rm2;
- bus_space_handle_t bh = 0;
void *vaddr;
-
switch (type) {
case SYS_RES_IRQ:
rm1 = &sc->sc_irq_rman;
@@ -539,13 +537,13 @@
return (rman_activate_resource(r));
}
+#if 0
static int
idtpci_setup_intr(device_t dev, device_t child, struct resource *ires,
int flags, driver_filter_t *filt, driver_intr_t *handler,
void *arg, void **cookiep)
{
panic("setup_intr");
-#if 0
struct idtpci_softc *sc = device_get_softc(dev);
struct intr_event *event;
int irq, error;
@@ -571,10 +569,10 @@
sc->sc_elcr &= ~(1 << irq);
idtpci_set_icus(sc);
-#endif
return (0);
}
+#endif
static int
idtpci_teardown_intr(device_t dev, device_t child, struct resource *res,
More information about the p4-projects
mailing list