summaryrefslogtreecommitdiff
path: root/drivers/usb
diff options
context:
space:
mode:
authorNikhil Badola <nikhil.badola@freescale.com>2014-10-14 03:47:24 (GMT)
committerMatthew Weigel <Matthew.Weigel@freescale.com>2014-12-11 18:38:20 (GMT)
commit3b481381670d3822afc1cab572d71a119887dd77 (patch)
treef4064d3f507692b4f151fe3b52466c8534d472a7 /drivers/usb
parent44a0d180e3774f999bd74fd101d430231540bf36 (diff)
downloadlinux-fsl-qoriq-3b481381670d3822afc1cab572d71a119887dd77.tar.xz
drivers: usb: fsl: Remove compilation error from usb driver
Remove compilation error from USB driver while compiling for architectures other than PPC Signed-off-by: Nikhil Badola <nikhil.badola@freescale.com> Change-Id: Icc9d648f08ec5affb7b58374faef2c6e3b539182 Reviewed-on: http://git.am.freescale.net:8181/21814 Tested-by: Review Code-CDREVIEW <CDREVIEW@freescale.com> Reviewed-by: Ramneek Mehresh <ramneek.mehresh@freescale.com> Reviewed-by: Zhengxiong Jin <Jason.Jin@freescale.com>
Diffstat (limited to 'drivers/usb')
-rw-r--r--drivers/usb/host/ehci-fsl.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/usb/host/ehci-fsl.c b/drivers/usb/host/ehci-fsl.c
index 86f2736..ec6f57c 100644
--- a/drivers/usb/host/ehci-fsl.c
+++ b/drivers/usb/host/ehci-fsl.c
@@ -30,7 +30,9 @@
#include <linux/err.h>
#include <linux/platform_device.h>
#include <linux/fsl_devices.h>
+#ifdef CONFIG_PPC
#include <sysdev/fsl_soc.h>
+#endif
#include "ehci-fsl.h"
@@ -686,7 +688,9 @@ static int ehci_fsl_drv_suspend(struct device *dev)
return 0;
}
#endif
+#ifdef CONFIG_PPC
mpc85xx_pmc_set_wake(dev, true);
+#endif
ehci_prepare_ports_for_controller_suspend(hcd_to_ehci(hcd),
device_may_wakeup(dev));
@@ -729,7 +733,9 @@ static int ehci_fsl_drv_resume(struct device *dev)
}
#endif
+#ifdef CONFIG_PPC
mpc85xx_pmc_set_wake(dev, false);
+#endif
ehci_prepare_ports_for_controller_resume(ehci);
if (!fsl_deep_sleep())