Jelajahi Sumber

USB: isp1362: fix inw warning on Blackfin systems

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>
Mike Frysinger 15 tahun lalu
induk
melakukan
0c8a32dff4
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  1. 1 1
      drivers/usb/host/isp1362.h

+ 1 - 1
drivers/usb/host/isp1362.h

@@ -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);
 	}
 }