]> git.sur5r.net Git - u-boot/commitdiff
net: smsc95xx: Use correct get_unaligned functions
authorChris Packham <judge.packham@gmail.com>
Tue, 12 Jul 2016 21:52:36 +0000 (09:52 +1200)
committerJoe Hershberger <joe.hershberger@ni.com>
Mon, 15 Aug 2016 18:34:45 +0000 (13:34 -0500)
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>
drivers/usb/eth/smsc95xx.c

index 08eaed5c2e03736a3df040e41ceb7bbdf8c11eae..7d9abfda3be19cc763c232de01c78e9a930f2c83 100644 (file)
@@ -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 */