Skip to contentSkip to conversation

mtd: nand: vf610_nfc: include missing pincrl/consumer.h

PATCH In review Brian Norris 2 participants 3 messages Sep 30, 2015

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mtd: nand: vf610_nfc: include missing pincrl/consumer.h

This must have been implicitly included on the builds I tested. Reported by numerous test bots:

drivers/mtd/nand/vf610_nfc.c: In function 'vf610_nfc_resume':
drivers/mtd/nand/vf610_nfc.c:660:2: error: implicit declaration of function 'pinctrl_pm_select_default_state' [-Werror=implicit-function-declaration]

     pinctrl_pm_select_default_state(dev);
     ^
Cc Bill Pringlemeir <[email protected]>
Cc Alexey Klimov <[email protected]>
Cc Stefan Agner <[email protected]>
---
 drivers/mtd/nand/vf610_nfc.c | 1 +
 1 file changed, 1 insertion(+)
drivers/mtd/nand/vf610_nfc.c +1 -0
index 42dad8e4b26f..ae1f84e3d635 100644
@@ -35,6 +35,7 @@
 #include <linux/mtd/partitions.h>
 #include <linux/of_mtd.h>
 #include <linux/of_device.h>
+#include <linux/pinctrl/consumer.h>
 #include <linux/platform_device.h>
 #include <linux/slab.h>
 
Signature · 1 line
2.6.0.rc2.230.g3dd15c0
Acked-by on v1 1/1
#1 lore raw
Quoted 2 lines · Brian Norris

This must have been implicitly included on the builds I tested. Reported by numerous test bots:

Same for me. Thanks for the fix.

--
Stefan

Quoted 27 lines

drivers/mtd/nand/vf610_nfc.c: In function 'vf610_nfc_resume':
drivers/mtd/nand/vf610_nfc.c:660:2: error: implicit declaration of
function 'pinctrl_pm_select_default_state' [-Werror=implicit-function-declaration]

     pinctrl_pm_select_default_state(dev);
     ^
Cc Bill Pringlemeir <[email protected]>
Cc Alexey Klimov <[email protected]>
Cc Stefan Agner <[email protected]>
---
 drivers/mtd/nand/vf610_nfc.c | 1 +
 1 file changed, 1 insertion(+)
drivers/mtd/nand/vf610_nfc.c +1 -0
index 42dad8e4b26f..ae1f84e3d635 100644
@@ -35,6 +35,7 @@
 #include <linux/mtd/partitions.h>
 #include <linux/of_mtd.h>
 #include <linux/of_device.h>
+#include <linux/pinctrl/consumer.h>
 #include <linux/platform_device.h>
 #include <linux/slab.h>
author Applied
#2 lore raw
Quoted 7 lines · Stefan Agner
Quoted 2 lines · Brian Norris

This must have been implicitly included on the builds I tested. Reported by numerous test bots:

Same for me. Thanks for the fix.

Applied to l2-mtd.git