svn commit: r208631 - projects/ppc64/sys/dev/iicbus

Nathan Whitehorn nwhitehorn at FreeBSD.org
Sat May 29 02:14:05 UTC 2010


Author: nwhitehorn
Date: Sat May 29 02:14:05 2010
New Revision: 208631
URL: http://svn.freebsd.org/changeset/base/208631

Log:
  Fix an endianness bug on 64-bit big-endian platforms.
  
  Submitted by:	Andreas Tobler

Modified:
  projects/ppc64/sys/dev/iicbus/iicbus.c

Modified: projects/ppc64/sys/dev/iicbus/iicbus.c
==============================================================================
--- projects/ppc64/sys/dev/iicbus/iicbus.c	Fri May 28 22:40:24 2010	(r208630)
+++ projects/ppc64/sys/dev/iicbus/iicbus.c	Sat May 29 02:14:05 2010	(r208631)
@@ -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-projects mailing list