smb347-charger: Include missing <linux/err.h>
authorMika Westerberg <mika.westerberg@linux.intel.com>
Mon, 7 May 2012 08:26:37 +0000 (11:26 +0300)
committerAnton Vorontsov <anton.vorontsov@linaro.org>
Sat, 19 May 2012 00:15:48 +0000 (17:15 -0700)
commit96facd23e45e6d5020be135c8ab392ba9e044fa4
treefd1e439a6ac122cc7542d7d44500a4c0819c74e4
parentfcc015cda7dfe1af26e17bbed21eecb742183b7e
smb347-charger: Include missing <linux/err.h>

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>
drivers/power/smb347-charger.c