diff options
author | Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> | 2011-04-14 00:57:06 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2011-04-29 20:24:29 -0400 |
commit | c89d2613b8e13c51a6efe23196fdc509984687e7 (patch) | |
tree | d1e4d5d95ac425f9b7f69b8b61d6e55d7174f8a2 /drivers/usb/renesas_usbhs/pipe.h | |
parent | 6498d9db6d2dad4cf5deb2dd09e0816904f41ca5 (diff) |
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/renesas_usbhs/pipe.h')
-rw-r--r-- | drivers/usb/renesas_usbhs/pipe.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/usb/renesas_usbhs/pipe.h b/drivers/usb/renesas_usbhs/pipe.h index 4a60dcef9676..1cca9b7fb266 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); | |||
93 | int usbhs_pipe_get_maxpacket(struct usbhs_pipe *pipe); | 93 | int usbhs_pipe_get_maxpacket(struct usbhs_pipe *pipe); |
94 | void usbhs_pipe_clear_sequence(struct usbhs_pipe *pipe); | 94 | void usbhs_pipe_clear_sequence(struct usbhs_pipe *pipe); |
95 | 95 | ||
96 | #define usbhs_pipe_number(p) (((u32)(p) - (u32)(p)->priv->pipe_info.pipe) / \ | 96 | #define usbhs_pipe_number(p) (int)((p) - (p)->priv->pipe_info.pipe) |
97 | sizeof(struct usbhs_pipe)) | ||
98 | 97 | ||
99 | /* | 98 | /* |
100 | * dcp control | 99 | * dcp control |