9
0
Fork 0

usb: fix build for big-endian platform

The problem was introduced in

    commit 51885a7d73
    Author: Sascha Hauer <s.hauer@pengutronix.de>
    Date:   Thu Jun 28 09:56:23 2012 +0200

    Change byte order detection mechanism to kernel style

Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
Antony Pavlov 2013-03-01 00:05:02 +04:00 committed by Sascha Hauer
parent ca9a1827dc
commit 14743045fb
1 changed files with 1 additions and 1 deletions

View File

@ -270,7 +270,7 @@ void usb_rescan(void);
#ifdef __LITTLE_ENDIAN
# define swap_16(x) (x)
# define swap_32(x) (x)
#elif defined BIG_ENDIAN
#elif defined __BIG_ENDIAN
# define swap_16(x) __swap_16(x)
# define swap_32(x) __swap_32(x)
#else