aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mfd
diff options
context:
space:
mode:
authorJulia Lawall <Julia.Lawall@inria.fr>2022-02-10 21:42:23 +0100
committerLee Jones <lee.jones@linaro.org>2022-03-08 09:44:05 +0000
commit6ceb5f173ff15136f3d76e8d22aa8c6e784ea126 (patch)
tree82a8f2bfdc8dc11f1e1dfde5215dc19b5f05f139 /drivers/mfd
parentmfd: ab8500: Rewrite bindings in YAML (diff)
downloadlinux-dev-6ceb5f173ff15136f3d76e8d22aa8c6e784ea126.tar.xz
linux-dev-6ceb5f173ff15136f3d76e8d22aa8c6e784ea126.zip
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
Diffstat (limited to 'drivers/mfd')
-rw-r--r--drivers/mfd/sta2x11-mfd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mfd/sta2x11-mfd.c b/drivers/mfd/sta2x11-mfd.c
index 1819c8fe4d8f..02cc49daf2e3 100644
--- a/drivers/mfd/sta2x11-mfd.c
+++ b/drivers/mfd/sta2x11-mfd.c
@@ -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 */
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 */
for (i = 0; i < 2; i++) {