Commit 142be740 authored by Julia Lawall's avatar Julia Lawall Committed by Herbert Xu
Browse files

crypto: ux500 - use GFP_KERNEL



Platform_driver probe functions aren't called with locks held
and thus don't need GFP_ATOMIC. Use GFP_KERNEL instead.

Problem found with Coccinelle.

Signed-off-by: default avatarJulia Lawall <Julia.Lawall@inria.fr>
Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
parent bd75b4ef
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1264,7 +1264,7 @@ static int ux500_cryp_probe(struct platform_device *pdev)
	struct device *dev = &pdev->dev;

	dev_dbg(dev, "[%s]", __func__);
	device_data = devm_kzalloc(dev, sizeof(*device_data), GFP_ATOMIC);
	device_data = devm_kzalloc(dev, sizeof(*device_data), GFP_KERNEL);
	if (!device_data) {
		ret = -ENOMEM;
		goto out;
+1 −1
Original line number Diff line number Diff line
@@ -1658,7 +1658,7 @@ static int ux500_hash_probe(struct platform_device *pdev)
	struct hash_device_data *device_data;
	struct device		*dev = &pdev->dev;

	device_data = devm_kzalloc(dev, sizeof(*device_data), GFP_ATOMIC);
	device_data = devm_kzalloc(dev, sizeof(*device_data), GFP_KERNEL);
	if (!device_data) {
		ret = -ENOMEM;
		goto out;