提交 0c8a32df 编写于 作者: M Mike Frysinger 提交者: Greg Kroah-Hartman

USB: isp1362: fix inw warning on Blackfin systems

The Blackfin code is incorrectly casting the argument to inw() to a pointer.
Signed-off-by: NMike Frysinger <vapier@gentoo.org>
Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
上级 b41709f1
...@@ -65,7 +65,7 @@ static inline void delayed_insw(unsigned int addr, void *buf, int len) ...@@ -65,7 +65,7 @@ static inline void delayed_insw(unsigned int addr, void *buf, int len)
unsigned short *bp = (unsigned short *)buf; unsigned short *bp = (unsigned short *)buf;
while (len--) { while (len--) {
DUMMY_DELAY_ACCESS; DUMMY_DELAY_ACCESS;
*bp++ = inw((void *)addr); *bp++ = inw(addr);
} }
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册