public inbox for linux-omap@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] ARM: OMAP: Fix warning in plat_uds.c
@ 2007-08-17 15:43 Dirk Behme
  2007-08-17 16:12 ` Felipe Balbi
  0 siblings, 1 reply; 13+ messages in thread
From: Dirk Behme @ 2007-08-17 15:43 UTC (permalink / raw)
  To: linux-omap-open-source

[-- Attachment #1: Type: text/plain, Size: 197 bytes --]


Fix warning

drivers/usb/musb/plat_uds.c:1731: warning: 'dev_attr_srp' defined but 
not used

if CONFIG_USB_MUSB_OTG isn't set (DaVinci use case)

Signed-off-by: Dirk Behme <dirk.behme@gmail.com>

[-- Attachment #2: plat_uds_warning_fix.txt --]
[-- Type: text/plain, Size: 754 bytes --]

Index: linux-davinci/drivers/usb/musb/plat_uds.c
===================================================================
--- linux-davinci.orig/drivers/usb/musb/plat_uds.c
+++ linux-davinci/drivers/usb/musb/plat_uds.c
@@ -1707,6 +1707,7 @@ musb_vbus_show(struct device *dev, struc
 }
 static DEVICE_ATTR(vbus, 0644, musb_vbus_show, musb_vbus_store);
 
+#ifdef CONFIG_USB_MUSB_OTG
 static ssize_t
 musb_srp_store(struct device *dev, struct device_attribute *attr,
 		const char *buf, size_t n)
@@ -1728,8 +1729,11 @@ musb_srp_store(struct device *dev, struc
 
 	return n;
 }
+
+
 static DEVICE_ATTR(srp, 0644, NULL, musb_srp_store);
 #endif
+#endif
 
 /* Only used to provide cable state change events */
 static void musb_irq_work(struct work_struct *data)


[-- Attachment #3: Type: text/plain, Size: 0 bytes --]



^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2007-08-21  7:24 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-08-17 15:43 [PATCH] ARM: OMAP: Fix warning in plat_uds.c Dirk Behme
2007-08-17 16:12 ` Felipe Balbi
2007-08-17 16:39   ` Dirk Behme
2007-08-17 16:57     ` David Brownell
2007-08-17 18:14       ` Felipe Balbi
2007-08-17 18:30         ` David Brownell
2007-08-17 20:36           ` Felipe Balbi
2007-08-17 21:02             ` David Brownell
2007-08-20  6:51               ` Dirk Behme
2007-08-20  8:41                 ` David Brownell
2007-08-20  9:59                   ` Dirk Behme
2007-08-20 18:10                     ` David Brownell
2007-08-21  7:24                       ` Tony Lindgren

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox