Date: Fri, 23 Aug 2013 20:39:41 +0000 (UTC) From: Andreas Tobler <andreast@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r254737 - head/sys/powerpc/powermac Message-ID: <201308232039.r7NKdfpL075160@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: andreast Date: Fri Aug 23 20:39:41 2013 New Revision: 254737 URL: http://svnweb.freebsd.org/changeset/base/254737 Log: Return EIO iso -1, the kiic_transfer has an signed return. Submitted by: Luiz Otavio O Souza <loos.br AT gmail.com> Modified: head/sys/powerpc/powermac/kiic.c Modified: head/sys/powerpc/powermac/kiic.c ============================================================================== --- head/sys/powerpc/powermac/kiic.c Fri Aug 23 20:37:44 2013 (r254736) +++ head/sys/powerpc/powermac/kiic.c Fri Aug 23 20:39:41 2013 (r254737) @@ -420,7 +420,7 @@ kiic_transfer(device_t dev, struct iic_m device_printf(sc->sc_dev, "I2C error\n"); sc->sc_flags = 0; mtx_unlock(&sc->sc_mutex); - return (-1); + return (EIO); } }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201308232039.r7NKdfpL075160>