summaryrefslogtreecommitdiff
path: root/arch/arm/mach-omap2/devices.c
diff options
context:
space:
mode:
authorOlof Johansson <olof@lixom.net>2012-09-17 19:35:22 -0700
committerOlof Johansson <olof@lixom.net>2012-09-18 17:45:42 -0700
commitb25c46074a16e261e1fb2baf59578a2ad0cd8ef6 (patch)
tree84896b6e8bd1d22ac53eae795fb48a1c3f55ec5a /arch/arm/mach-omap2/devices.c
parent3a839ce4f7e1446167cbb51189235e2f1b9a67a4 (diff)
parentde6ca33a96a6bf61fcb91d3d399703e19ead9d1e (diff)
downloadlinux-3.10-b25c46074a16e261e1fb2baf59578a2ad0cd8ef6.tar.gz
linux-3.10-b25c46074a16e261e1fb2baf59578a2ad0cd8ef6.tar.bz2
linux-3.10-b25c46074a16e261e1fb2baf59578a2ad0cd8ef6.zip
Merge tag 'cleanup-fixes-for-v3.7' of git://git.kernel.org/pub/scm/linux/kernel/git/tmlind/linux-omap into next/cleanup
From Tony Lindgren: These fixes are needed to fix non-omap build breakage for twl-core driver and to fix omap1_defconfig compile when led driver changes and omap sparse IRQ changes are merged together. Also fix warnings for omaps not using pinctrl framework yet. * tag 'cleanup-fixes-for-v3.7' of git://git.kernel.org/pub/scm/linux/kernel/git/tmlind/linux-omap: ARM: OMAP1: Include gpio-omap.h for board-h2 and board-h3 ARM: OMAP2+: Enable pinctrl dummy states mfd: Fix compile for twl-core.c by removing cpu_is_omap usage
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 6f6893e38ff..f6cbcdcb3c1 100644
--- a/arch/arm/mach-omap2/devices.c
+++ b/arch/arm/mach-omap2/devices.c
@@ -17,6 +17,7 @@
#include <linux/err.h>
#include <linux/slab.h>
#include <linux/of.h>
+#include <linux/pinctrl/machine.h>
#include <linux/platform_data/omap4-keypad.h>
#include <asm/mach-types.h>
@@ -627,6 +628,10 @@ static inline void omap_init_vout(void) {}
static int __init omap2_init_devices(void)
{
+ /* Enable dummy states for those platforms without pinctrl support */
+ if (!of_have_populated_dt())
+ pinctrl_provide_dummies();
+
/*
* please keep these calls, and their implementations above,
* in alphabetical order so they're easier to sort through.