svn commit: r278147 - head/sys/dev/drm2/i915

Konstantin Belousov kib at FreeBSD.org
Tue Feb 3 10:46:08 UTC 2015


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);
 		}
 	}
 


More information about the svn-src-head mailing list