[patch-2.6.34+ 1/5] usb: musb: omap2430: don't define the same functions twice

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



ifdef out those functions on the C file too.

Signed-off-by: Felipe Balbi <felipe.balbi@xxxxxxxxx>
---
 drivers/usb/musb/omap2430.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/drivers/usb/musb/omap2430.c b/drivers/usb/musb/omap2430.c
index 3fe1686..67416be 100644
--- a/drivers/usb/musb/omap2430.c
+++ b/drivers/usb/musb/omap2430.c
@@ -258,6 +258,7 @@ int __init musb_platform_init(struct musb *musb)
 }
 
 #ifdef CONFIG_PM
+#if defined(CONFIG_ARCH_OMAP34XX) || defined(CONFIG_ARCH_OMAP2430)
 void musb_platform_save_context(struct musb *musb,
 		struct musb_context_registers *musb_context)
 {
@@ -272,6 +273,7 @@ void musb_platform_restore_context(struct musb *musb,
 	musb_writel(musb->mregs, OTG_FORCESTDBY, musb_context->otg_forcestandby);
 }
 #endif
+#endif
 
 int musb_platform_suspend(struct musb *musb)
 {
-- 
1.7.0.rc0.33.g7c3932

--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux