Date: Thu, 8 Jul 2010 14:19:52 +0000 (UTC) From: Nathan Whitehorn <nwhitehorn@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r209800 - head/sys/dev/iicbus Message-ID: <201007081419.o68EJqtO035008@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201007081419.o68EJqtO035008>