diff options
author | Asmaa Mnebhi <asmaa@nvidia.com> | 2022-06-21 14:49:30 +0200 |
---|---|---|
committer | Sebastian Reichel <sebastian.reichel@collabora.com> | 2022-06-29 03:39:08 +0200 |
commit | a5a3d94fc4edecb894bc79810aea511ff9261c09 (patch) | |
tree | 57184025cb171c9a9f6430f331deedc14690397d /drivers | |
parent | Merge tag 'at91-reset-sama7g5-signed' into psy-next (diff) | |
download | linux-a5a3d94fc4edecb894bc79810aea511ff9261c09.tar.xz linux-a5a3d94fc4edecb894bc79810aea511ff9261c09.zip |
power: reset: pwr-mlxbf: add missing include
Add missing include for devm_work_autocancel to fix build error:
drivers/power/reset/pwr-mlxbf.c: In function 'pwr_mlxbf_probe':
drivers/power/reset/pwr-mlxbf.c:67:15: error: implicit declaration of function 'devm_work_autocancel' [-Werror=implicit-function-declaration]
67 | err = devm_work_autocancel(dev, &priv->send_work, pwr_mlxbf_send_work);
| ^~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
Fixes: a4c0094fcf76 ("power: reset: pwr-mlxbf: add BlueField SoC power control driver")
Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Asmaa Mnebhi <asmaa@nvidia.com>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/power/reset/pwr-mlxbf.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/power/reset/pwr-mlxbf.c b/drivers/power/reset/pwr-mlxbf.c index c1f9987834a2..1c4904c0e1f5 100644 --- a/drivers/power/reset/pwr-mlxbf.c +++ b/drivers/power/reset/pwr-mlxbf.c @@ -6,6 +6,7 @@ #include <linux/acpi.h> #include <linux/device.h> +#include <linux/devm-helpers.h> #include <linux/interrupt.h> #include <linux/kernel.h> #include <linux/mod_devicetable.h> |