summaryrefslogtreecommitdiff
path: root/drivers/usb/host/fotg210-hcd.c
diff options
context:
space:
mode:
authorXu Wang <vulab@iscas.ac.cn>2020-11-20 11:30:54 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2020-12-09 17:25:19 +0300
commit3b78ef0da32f3288c292b2ecf680c31b4674b50d (patch)
treec88d3c3fc5ff60fde6354b635f21a787bfe4f706 /drivers/usb/host/fotg210-hcd.c
parent21f5b2fb5fab893e2c745e4e24c4f425cc3db4c1 (diff)
downloadlinux-3b78ef0da32f3288c292b2ecf680c31b4674b50d.tar.xz
usb: fotg210-hcd: remove casting dma_alloc_coherent
Remove casting the values returned by dma_alloc_coherent. Signed-off-by: Xu Wang <vulab@iscas.ac.cn> Link: https://lore.kernel.org/r/20201120083054.8973-1-vulab@iscas.ac.cn Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/host/fotg210-hcd.c')
-rw-r--r--drivers/usb/host/fotg210-hcd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/host/fotg210-hcd.c b/drivers/usb/host/fotg210-hcd.c
index 0451943f0bc4..5617ef30530a 100644
--- a/drivers/usb/host/fotg210-hcd.c
+++ b/drivers/usb/host/fotg210-hcd.c
@@ -1951,7 +1951,7 @@ static int fotg210_mem_init(struct fotg210_hcd *fotg210, gfp_t flags)
goto fail;
/* Hardware periodic table */
- fotg210->periodic = (__le32 *)
+ fotg210->periodic =
dma_alloc_coherent(fotg210_to_hcd(fotg210)->self.controller,
fotg210->periodic_size * sizeof(__le32),
&fotg210->periodic_dma, 0);