aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-omap2/devices.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/mach-omap2/devices.c')
-rw-r--r--arch/arm/mach-omap2/devices.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/arm/mach-omap2/devices.c b/arch/arm/mach-omap2/devices.c
index 6f6893e38ffc..f6cbcdcb3c13 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>
@@ -627,6 +628,10 @@ static inline void omap_init_vout(void) {}
627 628
628static int __init omap2_init_devices(void) 629static int __init omap2_init_devices(void)
629{ 630{
631 /* Enable dummy states for those platforms without pinctrl support */
632 if (!of_have_populated_dt())
633 pinctrl_provide_dummies();
634
630 /* 635 /*
631 * please keep these calls, and their implementations above, 636 * please keep these calls, and their implementations above,
632 * in alphabetical order so they're easier to sort through. 637 * in alphabetical order so they're easier to sort through.