Author: rrs
Date: Tue Oct 29 11:28:11 2013
New Revision: 257326
URL: http://svnweb.freebsd.org/changeset/base/257326

Log:
  Opps, my kirkwood fix for the dreamplug missed this.

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

Modified: head/sys/dev/cesa/cesa.c
==============================================================================
--- head/sys/dev/cesa/cesa.c    Tue Oct 29 11:21:31 2013        (r257325)
+++ head/sys/dev/cesa/cesa.c    Tue Oct 29 11:28:11 2013        (r257326)
@@ -995,11 +995,17 @@ cesa_attach(device_t dev)
        sc->sc_dev = dev;
 
        /* Check if CESA peripheral device has power turned on */
+#if defined(SOC_MV_KIRKWOOD)
+       if (soc_power_ctrl_get(CPU_PM_CTRL_CRYPTO) == CPU_PM_CTRL_CRYPTO) {
+               device_printf(dev, "not powered on\n");
+               return (ENXIO);
+       }
+#else
        if (soc_power_ctrl_get(CPU_PM_CTRL_CRYPTO) != CPU_PM_CTRL_CRYPTO) {
                device_printf(dev, "not powered on\n");
                return (ENXIO);
        }
-
+#endif
        soc_id(&d, &r);
 
        switch (d) {
_______________________________________________
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