projects/linux·commit 96facd23

smb347-charger: Include missing <linux/err.h>

96facd23 · Mika Westerberg <[email protected]> · 2012-05-07 11:26:37 +03:00

Without the include we get build errors like:

drivers/power/smb347-charger.c: In function 'smb347_probe':
drivers/power/smb347-charger.c:1039:2: error: implicit declaration of function 'IS_ERR' [-Werror=implicit-function-declaration]
drivers/power/smb347-charger.c:1040:3: error: implicit declaration of function 'PTR_ERR' [-Werror=implicit-function-declaration]

Reported-by: Stephen Rothwell <[email protected]>
Signed-off-by: Mika Westerberg <[email protected]>
Signed-off-by: Anton Vorontsov <[email protected]>
Commit
96facd23e45e6d5020be135c8ab392ba9e044fa4
Parents
fcc015cd

Changes

1 files changed · +1 −0

FileStatusAddDelContent
drivers/power/smb347-charger.cmodified+1−0View file

drivers/power/smb347-charger.c

View file
diff --git a/drivers/power/smb347-charger.c b/drivers/power/smb347-charger.c
index 09d19d2..f8eedd8 100644
--- a/drivers/power/smb347-charger.c
+++ b/drivers/power/smb347-charger.c
@@ -11,6 +11,7 @@
* published by the Free Software Foundation.
*/
+#include <linux/err.h>
#include <linux/gpio.h>
#include <linux/kernel.h>
#include <linux/module.h>