]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
usb: r8a66597: Fix argument mistake of inl
authorNobuhiro Iwamatsu <iwamatsu@nigauri.org>
Mon, 27 Jun 2011 07:07:37 +0000 (16:07 +0900)
committerNobuhiro Iwamatsu <iwamatsu@nigauri.org>
Mon, 22 Aug 2011 04:16:09 +0000 (13:16 +0900)
Fail in build, because argument of inl used in r8a66597_read_fifo is wrong.

r8a66597.h:441:35: error: macro "inl" passed 2 arguments, but takes just 1
In file included from r8a66597-hcd.c:25:
r8a66597.h: In function ‘r8a66597_read_fifo’:
r8a66597.h:441: error: ‘inl’ undeclared (first use in this function)
r8a66597.h:441: error: (Each undeclared identifier is reported only once
r8a66597.h:441: error: for each function it appears in.)

Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
drivers/usb/host/r8a66597.h

index 9af6446c134efd0417d37ffdc1f9b7212ed083dd..ca1b67155ea8ad80eeb2cebbf235d210a8f3f7aa 100644 (file)
@@ -438,7 +438,7 @@ static inline void r8a66597_read_fifo(struct r8a66597 *r8a66597,
 
        count = len / 4;
        for (i = 0; i < count; i++)
-               inl(p[i], r8a66597->reg + offset);
+               p[i] = inl(r8a66597->reg + offset);
 
        if (len & 0x00000003) {
                unsigned long tmp = inl(fifoaddr);