Skip to content

Commit 96facd2

Browse files
westeriAnton Vorontsov
authored andcommitted
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>
1 parent fcc015c commit 96facd2

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎drivers/power/smb347-charger.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
* published by the Free Software Foundation.
1212
*/
1313

14+
#include <linux/err.h>
1415
#include <linux/gpio.h>
1516
#include <linux/kernel.h>
1617
#include <linux/module.h>

0 commit comments

Comments
 (0)