Author: imp
Date: Fri Jan 16 06:19:24 2015
New Revision: 277233
URL: https://svnweb.freebsd.org/changeset/base/277233

Log:
  Suspend and resume were the only two functions not to follow the brdev
  convention here, so fix that.

Modified:
  head/sys/dev/pccbb/pccbb.c

Modified: head/sys/dev/pccbb/pccbb.c
==============================================================================
--- head/sys/dev/pccbb/pccbb.c  Fri Jan 16 06:19:08 2015        (r277232)
+++ head/sys/dev/pccbb/pccbb.c  Fri Jan 16 06:19:24 2015        (r277233)
@@ -1563,12 +1563,12 @@ cbb_write_ivar(device_t brdev, device_t 
 }
 
 int
-cbb_suspend(device_t self)
+cbb_suspend(device_t brdev)
 {
        int                     error = 0;
-       struct cbb_softc        *sc = device_get_softc(self);
+       struct cbb_softc        *sc = device_get_softc(brdev);
 
-       error = bus_generic_suspend(self);
+       error = bus_generic_suspend(brdev);
        if (error != 0)
                return (error);
        cbb_set(sc, CBB_SOCKET_MASK, 0);        /* Quiet hardware */
@@ -1577,10 +1577,10 @@ cbb_suspend(device_t self)
 }
 
 int
-cbb_resume(device_t self)
+cbb_resume(device_t brdev)
 {
        int     error = 0;
-       struct cbb_softc *sc = (struct cbb_softc *)device_get_softc(self);
+       struct cbb_softc *sc = (struct cbb_softc *)device_get_softc(brdev);
        uint32_t tmp;
 
        /*
@@ -1596,8 +1596,8 @@ cbb_resume(device_t self)
         * code that would be difficult to transition into the PCI
         * layer. chipinit was several years of trial and error to write.
         */
-       pci_write_config(self, CBBR_SOCKBASE, rman_get_start(sc->base_res), 4);
-       DEVPRINTF((self, "PCI Memory allocated: %08lx\n",
+       pci_write_config(brdev, CBBR_SOCKBASE, rman_get_start(sc->base_res), 4);
+       DEVPRINTF((brdev, "PCI Memory allocated: %08lx\n",
            rman_get_start(sc->base_res)));
 
        sc->chipinit(sc);
@@ -1612,7 +1612,7 @@ cbb_resume(device_t self)
        /* Signal the thread to wakeup. */
        wakeup(&sc->intrhand);
 
-       error = bus_generic_resume(self);
+       error = bus_generic_resume(brdev);
 
        return (error);
 }
_______________________________________________
svn-src-head@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to