projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
21f5b2f
)
usb: fotg210-hcd: remove casting dma_alloc_coherent
author
Xu Wang
<vulab@iscas.ac.cn>
Fri, 20 Nov 2020 08:30:54 +0000
(08:30 +0000)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Wed, 9 Dec 2020 14:25:19 +0000
(15:25 +0100)
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>
drivers/usb/host/fotg210-hcd.c
patch
|
blob
|
history
diff --git
a/drivers/usb/host/fotg210-hcd.c
b/drivers/usb/host/fotg210-hcd.c
index 0451943f0bc402b216843cc726c73a1af8c34cd9..5617ef30530a65628703e0203846969de5036ce6 100644
(file)
--- 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);