Skip to content

Commit

Permalink
USB: isp1362: fix inw warning on Blackfin systems
Browse files Browse the repository at this point in the history
The Blackfin code is incorrectly casting the argument to inw() to a pointer.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
Mike Frysinger authored and Greg Kroah-Hartman committed Jun 4, 2010
1 parent b41709f commit 0c8a32d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/usb/host/isp1362.h
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ static inline void delayed_insw(unsigned int addr, void *buf, int len)
unsigned short *bp = (unsigned short *)buf;
while (len--) {
DUMMY_DELAY_ACCESS;
*bp++ = inw((void *)addr);
*bp++ = inw(addr);
}
}

Expand Down

0 comments on commit 0c8a32d

Please sign in to comment.