aboutsummaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorZiyan <jaraidaniel@gmail.com>2016-03-06 18:02:22 +0100
committerAndreas Blaesius <skate4life@gmx.de>2016-04-30 19:29:50 +0200
commit35c6f0efe102325901bf00de190be7b52030c379 (patch)
treeed14a2e660a7d1d096eec157d49284a82da2416a /arch
parent88adddfeaacb6f4a6facef53d9da6d0de2817c59 (diff)
downloadkernel_samsung_espresso10-35c6f0efe102325901bf00de190be7b52030c379.zip
kernel_samsung_espresso10-35c6f0efe102325901bf00de190be7b52030c379.tar.gz
kernel_samsung_espresso10-35c6f0efe102325901bf00de190be7b52030c379.tar.bz2
OMAP4: SAR: fix build when CONFIG_MFD_OMAP_USB_HOST is not set
Diffstat (limited to 'arch')
-rw-r--r--arch/arm/mach-omap2/omap4-sar.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/arm/mach-omap2/omap4-sar.c b/arch/arm/mach-omap2/omap4-sar.c
index 4bc6ce6..9a0a4e4 100644
--- a/arch/arm/mach-omap2/omap4-sar.c
+++ b/arch/arm/mach-omap2/omap4-sar.c
@@ -1235,10 +1235,12 @@ int omap4_sar_save(void)
return -EBUSY;
}
+#ifdef CONFIG_MFD_OMAP_USB_HOST
if (cpu_is_omap443x() && !omap4430_usbhs_update_sar()) {
pr_debug("%s: NOT saving USB SAR context!\n", __func__);
uhh_save = 0;
}
+#endif
/*
* SAR bits and clocks needs to be enabled