summaryrefslogtreecommitdiff
path: root/drivers/usb
diff options
context:
space:
mode:
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>2011-04-14 04:57:06 (GMT)
committerGreg Kroah-Hartman <gregkh@suse.de>2011-04-30 00:24:29 (GMT)
commitc89d2613b8e13c51a6efe23196fdc509984687e7 (patch)
treed1e4d5d95ac425f9b7f69b8b61d6e55d7174f8a2 /drivers/usb
parent6498d9db6d2dad4cf5deb2dd09e0816904f41ca5 (diff)
downloadlinux-c89d2613b8e13c51a6efe23196fdc509984687e7.tar.xz
usb: renesas_usbhs: fixup cast warning
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>
Diffstat (limited to 'drivers/usb')
-rw-r--r--drivers/usb/renesas_usbhs/pipe.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/usb/renesas_usbhs/pipe.h b/drivers/usb/renesas_usbhs/pipe.h
index 4a60dce..1cca9b7 100644
--- a/drivers/usb/renesas_usbhs/pipe.h
+++ b/drivers/usb/renesas_usbhs/pipe.h
@@ -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