commit 0c008d0066b73623ecf65bb0361a882e3c0c9e6b Author: Brandon Bergren Date: Sat Oct 12 12:51:19 2019 -0500 (needs sent) [PowerPC] [BookE] Tidy up bus interrupt callback diff --git a/sys/powerpc/mpc85xx/pci_mpc85xx.c b/sys/powerpc/mpc85xx/pci_mpc85xx.c index a919d705512..11ed2af52f9 100644 --- a/sys/powerpc/mpc85xx/pci_mpc85xx.c +++ b/sys/powerpc/mpc85xx/pci_mpc85xx.c @@ -269,7 +269,7 @@ DEFINE_CLASS_1(pcib, fsl_pcib_driver, fsl_pcib_methods, EARLY_DRIVER_MODULE(pcib, ofwbus, fsl_pcib_driver, fsl_pcib_devclass, 0, 0, BUS_PASS_BUS); -static int +static void fsl_pcib_err_intr(void *v) { struct fsl_pcib_softc *sc; @@ -294,8 +294,6 @@ fsl_pcib_err_intr(void *v) /* Clear pending errors */ bus_space_write_4(sc->sc_bst, sc->sc_bsh, REG_PEX_ERR_DR, clear_reg); - - return (0); } static int @@ -425,7 +423,7 @@ fsl_pcib_attach(device_t dev) /* Setup interrupt handler */ error = bus_setup_intr(dev, sc->sc_irq_res, INTR_TYPE_MISC | INTR_MPSAFE, - NULL, (driver_intr_t *)fsl_pcib_err_intr, dev, &sc->sc_ih); + NULL, fsl_pcib_err_intr, dev, &sc->sc_ih); if (error != 0) { device_printf(dev, "Could not setup irq, %d\n", error); sc->sc_ih = NULL; @@ -1085,4 +1083,4 @@ static driver_t fsl_msi_driver = { }; EARLY_DRIVER_MODULE(fsl_msi, simplebus, fsl_msi_driver, fsl_msi_devclass, 0, 0, - BUS_PASS_INTERRUPT + 1); \ No newline at end of file + BUS_PASS_INTERRUPT + 1);