Date: Tue, 3 Feb 2015 10:46:08 +0000 (UTC) From: Konstantin Belousov <kib@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r278147 - head/sys/dev/drm2/i915 Message-ID: <201502031046.t13Ak8QJ074649@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: kib Date: Tue Feb 3 10:46:07 2015 New Revision: 278147 URL: https://svnweb.freebsd.org/changeset/base/278147 Log: Fix sign for the error code returned from the driver-specific code. Noted by: hps Sponsored by: The FreeBSD Foundation Modified: head/sys/dev/drm2/i915/intel_dp.c Modified: head/sys/dev/drm2/i915/intel_dp.c ============================================================================== --- head/sys/dev/drm2/i915/intel_dp.c Tue Feb 3 10:30:41 2015 (r278146) +++ head/sys/dev/drm2/i915/intel_dp.c Tue Feb 3 10:46:07 2015 (r278147) @@ -620,14 +620,14 @@ intel_dp_i2c_aux_ch(device_t idev, int m break; case AUX_NATIVE_REPLY_NACK: DRM_DEBUG_KMS("aux_ch native nack\n"); - return (EREMOTEIO); + return (-EREMOTEIO); case AUX_NATIVE_REPLY_DEFER: DELAY(100); continue; default: DRM_ERROR("aux_ch invalid native reply 0x%02x\n", reply[0]); - return (EREMOTEIO); + return (-EREMOTEIO); } switch (reply[0] & AUX_I2C_REPLY_MASK) { @@ -638,14 +638,14 @@ intel_dp_i2c_aux_ch(device_t idev, int m return (0/*reply_bytes - 1*/); case AUX_I2C_REPLY_NACK: DRM_DEBUG_KMS("aux_i2c nack\n"); - return (EREMOTEIO); + return (-EREMOTEIO); case AUX_I2C_REPLY_DEFER: DRM_DEBUG_KMS("aux_i2c defer\n"); DELAY(100); break; default: DRM_ERROR("aux_i2c invalid reply 0x%02x\n", reply[0]); - return (EREMOTEIO); + return (-EREMOTEIO); } }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201502031046.t13Ak8QJ074649>