usb: renesas_usbhs: fixup cast warning
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Thu, 14 Apr 2011 04:57:06 +0000 (13:57 +0900)
committerGreg Kroah-Hartman <gregkh@suse.de>
Sat, 30 Apr 2011 00:24:29 +0000 (17:24 -0700)
This patch fixup cast warning on 64 bit compiler

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Reported-by: Greg Kroah-Hartman <gregkh@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/renesas_usbhs/pipe.h

index 4a60dcef9676ea223093fb626dea8765f0c5e194..1cca9b7fb266e8a00c77e8669bc10654da4caca2 100644 (file)
@@ -93,8 +93,7 @@ void usbhs_pipe_init(struct usbhs_priv *priv);
 int usbhs_pipe_get_maxpacket(struct usbhs_pipe *pipe);
 void usbhs_pipe_clear_sequence(struct usbhs_pipe *pipe);
 
-#define usbhs_pipe_number(p)   (((u32)(p) - (u32)(p)->priv->pipe_info.pipe) / \
-                                sizeof(struct usbhs_pipe))
+#define usbhs_pipe_number(p)   (int)((p) - (p)->priv->pipe_info.pipe)
 
 /*
  * dcp control