Commit cf369e4e authored by Julia Lawall's avatar Julia Lawall Committed by Damien Le Moal

ata: pata_mpc52xx: 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>
Reviewed-by: default avatarSergey Shtylyov <s.shtylyov@omp.ru>
Signed-off-by: default avatarDamien Le Moal <damien.lemoal@opensource.wdc.com>
parent 334bfa1f
...@@ -736,7 +736,7 @@ static int mpc52xx_ata_probe(struct platform_device *op) ...@@ -736,7 +736,7 @@ static int mpc52xx_ata_probe(struct platform_device *op)
} }
/* Prepare our private structure */ /* Prepare our private structure */
priv = devm_kzalloc(&op->dev, sizeof(*priv), GFP_ATOMIC); priv = devm_kzalloc(&op->dev, sizeof(*priv), GFP_KERNEL);
if (!priv) { if (!priv) {
rv = -ENOMEM; rv = -ENOMEM;
goto err1; goto err1;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment