diff options
author | Christophe JAILLET <christophe.jaillet@wanadoo.fr> | 2020-08-09 10:29:48 +0300 |
---|---|---|
committer | Felipe Balbi <balbi@kernel.org> | 2020-10-02 09:57:43 +0300 |
commit | 6c2a754a12ba9255cf34fac435fb0c448dce9a95 (patch) | |
tree | 06fd281951b8c5cee59f1234ca914cf54120e9a5 /drivers/usb/gadget/udc/tegra-xudc.c | |
parent | 5a1da544e572f58986d7bee03d31c91d1f87f214 (diff) | |
download | linux-6c2a754a12ba9255cf34fac435fb0c448dce9a95.tar.xz |
usb: gadget: tegra-xudc: Avoid GFP_ATOMIC where it is not needed
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>
Diffstat (limited to 'drivers/usb/gadget/udc/tegra-xudc.c')
-rw-r--r-- | drivers/usb/gadget/udc/tegra-xudc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/gadget/udc/tegra-xudc.c b/drivers/usb/gadget/udc/tegra-xudc.c index d6ff68c06911..9aa4815c1c59 100644 --- 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; |