Author: ian
Date: Sat Oct 10 00:12:03 2015
New Revision: 289098
URL: https://svnweb.freebsd.org/changeset/base/289098

Log:
  Fix more cases of iicbus-layer functions that must return IIC_Exxxx values.

Modified:
  head/sys/dev/iicbus/iiconf.c

Modified: head/sys/dev/iicbus/iiconf.c
==============================================================================
--- head/sys/dev/iicbus/iiconf.c        Fri Oct  9 23:58:19 2015        
(r289097)
+++ head/sys/dev/iicbus/iiconf.c        Sat Oct 10 00:12:03 2015        
(r289098)
@@ -92,7 +92,7 @@ iicbus_poll(struct iicbus_softc *sc, int
                break;
 
        default:
-               return (EWOULDBLOCK);
+               return (IIC_EBUSBSY);
        }
 
        return (error);
@@ -157,7 +157,7 @@ iicbus_release_bus(device_t bus, device_
 
        if (sc->owner != dev) {
                IICBUS_UNLOCK(sc);
-               return (EACCES);
+               return (IIC_EBUSBSY);
        }
 
        /* 
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "[email protected]"

Reply via email to