projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5a1da54
)
usb: gadget: tegra-xudc: Avoid GFP_ATOMIC where it is not needed
author
Christophe JAILLET
<christophe.jaillet@wanadoo.fr>
Sun, 9 Aug 2020 07:29:48 +0000
(09:29 +0200)
committer
Felipe Balbi
<balbi@kernel.org>
Fri, 2 Oct 2020 06:57:43 +0000
(09:57 +0300)
There is no need to use GFP_ATOMIC here. It is a probe function, no
spinlock is taken.
Reviewed-by: JC Kuo <jckuo@nvidia.com>
Acked-by: Thierry Reding <treding@nvidia.com>
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: Felipe Balbi <balbi@kernel.org>
drivers/usb/gadget/udc/tegra-xudc.c
patch
|
blob
|
history
diff --git
a/drivers/usb/gadget/udc/tegra-xudc.c
b/drivers/usb/gadget/udc/tegra-xudc.c
index d6ff68c06911f269ef109d659785fc4cd78c3a6b..9aa4815c1c59cf8daa78f507e0b4cc76450eac34 100644
(file)
--- a/
drivers/usb/gadget/udc/tegra-xudc.c
+++ b/
drivers/usb/gadget/udc/tegra-xudc.c
@@
-3733,7
+3733,7
@@
static int tegra_xudc_probe(struct platform_device *pdev)
unsigned int i;
int err;
- xudc = devm_kzalloc(&pdev->dev, sizeof(*xudc), GFP_
ATOMIC
);
+ xudc = devm_kzalloc(&pdev->dev, sizeof(*xudc), GFP_
KERNEL
);
if (!xudc)
return -ENOMEM;