mirror of
https://github.com/torvalds/linux.git
synced 2024-11-10 14:11:52 +00:00
mfd: sta2x11: Use GFP_KERNEL instead of GFP_ATOMIC
pci_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: Julia Lawall <Julia.Lawall@inria.fr> Signed-off-by: Lee Jones <lee.jones@linaro.org> Link: https://lore.kernel.org/r/20220210204223.104181-10-Julia.Lawall@inria.fr
This commit is contained in:
parent
a002f65ab4
commit
6ceb5f173f
@ -590,7 +590,7 @@ static int sta2x11_mfd_probe(struct pci_dev *pdev,
|
|||||||
|
|
||||||
/* Record this pdev before mfd_add_devices: their probe looks for it */
|
/* Record this pdev before mfd_add_devices: their probe looks for it */
|
||||||
if (!sta2x11_mfd_find(pdev))
|
if (!sta2x11_mfd_find(pdev))
|
||||||
sta2x11_mfd_add(pdev, GFP_ATOMIC);
|
sta2x11_mfd_add(pdev, GFP_KERNEL);
|
||||||
|
|
||||||
/* Just 2 bars for all mfd's at present */
|
/* Just 2 bars for all mfd's at present */
|
||||||
for (i = 0; i < 2; i++) {
|
for (i = 0; i < 2; i++) {
|
||||||
|
Loading…
Reference in New Issue
Block a user