[PATCH 05/13] 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 dd64aeb..a897527 100644
--- a/drivers/usb/musb/omap2430.c
+++ b/drivers/usb/musb/omap2430.c
@@ -267,6 +267,7 @@ int __init musb_platform_init(struct musb *musb, void *board_data)
 }
 
 #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)
 {
@@ -281,6 +282,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