Skip to content

Commit

Permalink
smb347-charger: Include missing <linux/err.h>
Browse files Browse the repository at this point in the history
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 <sfr@canb.auug.org.au>
Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Signed-off-by: Anton Vorontsov <anton.vorontsov@linaro.org>
  • Loading branch information
Mika Westerberg authored and Anton Vorontsov committed May 19, 2012
1 parent fcc015c commit 96facd2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/power/smb347-charger.c
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down

0 comments on commit 96facd2

Please sign in to comment.