Skip to content

Commit

Permalink
usb: renesas_usbhs: fix build warning if 64-bit architecture
Browse files Browse the repository at this point in the history
This patch fixes the following warning if 64-bit architecture environment:

./drivers/usb/renesas_usbhs/common.c:496:25: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
  dparam->type = of_id ? (u32)of_id->data : 0;

Acked-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
  • Loading branch information
Yoshihiro Shimoda authored and Felipe Balbi committed Sep 30, 2015
1 parent 7022cfd commit 9ae7ce0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion drivers/usb/renesas_usbhs/common.c
Original file line number Diff line number Diff line change
Expand Up @@ -493,7 +493,7 @@ static struct renesas_usbhs_platform_info *usbhs_parse_dt(struct device *dev)
return NULL;

dparam = &info->driver_param;
dparam->type = of_id ? (u32)of_id->data : 0;
dparam->type = of_id ? (uintptr_t)of_id->data : 0;
if (!of_property_read_u32(dev->of_node, "renesas,buswait", &tmp))
dparam->buswait_bwait = tmp;
gpio = of_get_named_gpio_flags(dev->of_node, "renesas,enable-gpio", 0,
Expand Down
2 changes: 1 addition & 1 deletion include/linux/usb/renesas_usbhs.h
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ struct renesas_usbhs_driver_param {
*/
int pio_dma_border; /* default is 64byte */

u32 type;
uintptr_t type;
u32 enable_gpio;

/*
Expand Down

0 comments on commit 9ae7ce0

Please sign in to comment.