summaryrefslogtreecommitdiff
path: root/drivers/usb
diff options
context:
space:
mode:
authorChris Packham <judge.packham@gmail.com>2016-07-13 09:52:36 +1200
committerJoe Hershberger <joe.hershberger@ni.com>2016-08-15 13:34:45 -0500
commit70f14636861e70276426687dc3cf6ede3e1c2b99 (patch)
tree8bd3ec80ac98d83a6753b62d450d63e2ef47d745 /drivers/usb
parenta212b66d7c9304271a2e6f78775d7c1e328cbb8e (diff)
downloadu-boot-imx-70f14636861e70276426687dc3cf6ede3e1c2b99.zip
u-boot-imx-70f14636861e70276426687dc3cf6ede3e1c2b99.tar.gz
u-boot-imx-70f14636861e70276426687dc3cf6ede3e1c2b99.tar.bz2
net: smsc95xx: Use correct get_unaligned functions
The __get_unaligned_le* functions may not be declared on all platforms. Instead, get_unaligned_le* should be used. On many platforms both of these are the same function. Signed-off-by: Chris Packham <judge.packham@gmail.com> Acked-by: Joe Hershberger <joe.hershberger@ni.com>
Diffstat (limited to 'drivers/usb')
-rw-r--r--drivers/usb/eth/smsc95xx.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/usb/eth/smsc95xx.c b/drivers/usb/eth/smsc95xx.c
index 08eaed5..7d9abfd 100644
--- a/drivers/usb/eth/smsc95xx.c
+++ b/drivers/usb/eth/smsc95xx.c
@@ -391,8 +391,8 @@ static int smsc95xx_write_hwaddr_common(struct usb_device *udev,
struct smsc95xx_private *priv,
unsigned char *enetaddr)
{
- u32 addr_lo = __get_unaligned_le32(&enetaddr[0]);
- u32 addr_hi = __get_unaligned_le16(&enetaddr[4]);
+ u32 addr_lo = get_unaligned_le32(&enetaddr[0]);
+ u32 addr_hi = get_unaligned_le16(&enetaddr[4]);
int ret;
/* set hardware address */