]> Git Repo - linux.git/commitdiff
smb347-charger: Include missing <linux/err.h>
authorMika Westerberg <[email protected]>
Mon, 7 May 2012 08:26:37 +0000 (11:26 +0300)
committerAnton Vorontsov <[email protected]>
Sat, 19 May 2012 00:15:48 +0000 (17:15 -0700)
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]>
drivers/power/smb347-charger.c

index 09d19d241eed9fc26483f430c7e4fdff8159cc46..f8eedd8a676fc68ad21f45b8bfa4ddec55add723 100644 (file)
@@ -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>
This page took 0.056837 seconds and 4 git commands to generate.