Commit 6c2a754a authored by Christophe JAILLET's avatar Christophe JAILLET Committed by Felipe Balbi
Browse files

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: default avatarJC Kuo <jckuo@nvidia.com>
Acked-by: default avatarThierry Reding <treding@nvidia.com>
Signed-off-by: default avatarChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: default avatarFelipe Balbi <balbi@kernel.org>
parent 5a1da544
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;