diff options
Diffstat (limited to 'arch/arm/mach-omap2/devices.c')
-rw-r--r-- | arch/arm/mach-omap2/devices.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/arm/mach-omap2/devices.c b/arch/arm/mach-omap2/devices.c index 1efa984b1a47..6ef401079480 100644 --- a/arch/arm/mach-omap2/devices.c +++ b/arch/arm/mach-omap2/devices.c | |||
@@ -17,6 +17,7 @@ | |||
17 | #include <linux/err.h> | 17 | #include <linux/err.h> |
18 | #include <linux/slab.h> | 18 | #include <linux/slab.h> |
19 | #include <linux/of.h> | 19 | #include <linux/of.h> |
20 | #include <linux/pinctrl/machine.h> | ||
20 | #include <linux/platform_data/omap4-keypad.h> | 21 | #include <linux/platform_data/omap4-keypad.h> |
21 | 22 | ||
22 | #include <asm/mach-types.h> | 23 | #include <asm/mach-types.h> |
@@ -628,6 +629,10 @@ static inline void omap_init_vout(void) {} | |||
628 | 629 | ||
629 | static int __init omap2_init_devices(void) | 630 | static int __init omap2_init_devices(void) |
630 | { | 631 | { |
632 | /* Enable dummy states for those platforms without pinctrl support */ | ||
633 | if (!of_have_populated_dt()) | ||
634 | pinctrl_provide_dummies(); | ||
635 | |||
631 | /* | 636 | /* |
632 | * please keep these calls, and their implementations above, | 637 | * please keep these calls, and their implementations above, |
633 | * in alphabetical order so they're easier to sort through. | 638 | * in alphabetical order so they're easier to sort through. |