aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/gadget
diff options
context:
space:
mode:
authorDavid Rientjes <rientjes@google.com>2007-05-11 17:39:44 -0400
committerGreg Kroah-Hartman <gregkh@suse.de>2007-07-12 19:29:50 -0400
commit8234509c3968a87faa301a8a9d7f8b987cd9181c (patch)
treeb31f012ab48f870ce554ccc345639fcec10f356d /drivers/usb/gadget
parentba02978a48f0117b3d0aced97a30615a5d7412e2 (diff)
USB: use function attribute __maybe_unused
Substitute USB instances of __attribute__ ((unused)) functions with the newly introduced __maybe_unused. Signed-off-by: David Rientjes <rientjes@google.com> Signed-off-by: David Brownell <dbrownell@users.sourceforge.net> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb/gadget')
-rw-r--r--drivers/usb/gadget/pxa2xx_udc.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/usb/gadget/pxa2xx_udc.h b/drivers/usb/gadget/pxa2xx_udc.h
index 773e549aff3f..6b012e06af3a 100644
--- a/drivers/usb/gadget/pxa2xx_udc.h
+++ b/drivers/usb/gadget/pxa2xx_udc.h
@@ -204,7 +204,7 @@ static const char *state_name[] = {
204# define UDC_DEBUG DBG_NORMAL 204# define UDC_DEBUG DBG_NORMAL
205#endif 205#endif
206 206
207static void __attribute__ ((__unused__)) 207static void __maybe_unused
208dump_udccr(const char *label) 208dump_udccr(const char *label)
209{ 209{
210 u32 udccr = UDCCR; 210 u32 udccr = UDCCR;
@@ -220,7 +220,7 @@ dump_udccr(const char *label)
220 (udccr & UDCCR_UDE) ? " ude" : ""); 220 (udccr & UDCCR_UDE) ? " ude" : "");
221} 221}
222 222
223static void __attribute__ ((__unused__)) 223static void __maybe_unused
224dump_udccs0(const char *label) 224dump_udccs0(const char *label)
225{ 225{
226 u32 udccs0 = UDCCS0; 226 u32 udccs0 = UDCCS0;
@@ -237,7 +237,7 @@ dump_udccs0(const char *label)
237 (udccs0 & UDCCS0_OPR) ? " opr" : ""); 237 (udccs0 & UDCCS0_OPR) ? " opr" : "");
238} 238}
239 239
240static void __attribute__ ((__unused__)) 240static void __maybe_unused
241dump_state(struct pxa2xx_udc *dev) 241dump_state(struct pxa2xx_udc *dev)
242{ 242{
243 u32 tmp; 243 u32 tmp;