svn commit: r209800 - head/sys/dev/iicbus

Nathan Whitehorn nwhitehorn at FreeBSD.org
Thu Jul 8 14:19:53 UTC 2010


Author: nwhitehorn
Date: Thu Jul  8 14:19:52 2010
New Revision: 209800
URL: http://svn.freebsd.org/changeset/base/209800

Log:
  Fix iicbus_get_addr() on 64-bit big-endian systems. The bus accessor
  passes a uintptr_t, not a uint32_t.

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

Modified: head/sys/dev/iicbus/iicbus.c
==============================================================================
--- head/sys/dev/iicbus/iicbus.c	Thu Jul  8 14:08:03 2010	(r209799)
+++ head/sys/dev/iicbus/iicbus.c	Thu Jul  8 14:19:52 2010	(r209800)
@@ -181,7 +181,7 @@ iicbus_read_ivar(device_t bus, device_t 
 	default:
 		return (EINVAL);
 	case IICBUS_IVAR_ADDR:
-		*(uint32_t *)result = devi->addr;
+		*result = devi->addr;
 		break;
 	}
 	return (0);


More information about the svn-src-head mailing list