diff options
author | Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> | 2011-04-14 13:57:06 +0900 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2011-04-29 17:24:29 -0700 |
commit | c89d2613b8e13c51a6efe23196fdc509984687e7 (patch) | |
tree | d1e4d5d95ac425f9b7f69b8b61d6e55d7174f8a2 | |
parent | 6498d9db6d2dad4cf5deb2dd09e0816904f41ca5 (diff) | |
download | talos-obmc-linux-c89d2613b8e13c51a6efe23196fdc509984687e7.tar.gz talos-obmc-linux-c89d2613b8e13c51a6efe23196fdc509984687e7.zip |
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>
-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); 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 |