diff options
Diffstat (limited to 'drivers/usb/gadget/atmel_usba_udc.c')
-rw-r--r-- | drivers/usb/gadget/atmel_usba_udc.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/drivers/usb/gadget/atmel_usba_udc.c b/drivers/usb/gadget/atmel_usba_udc.c index 7a8f4421924c..4e970cf0e29a 100644 --- a/drivers/usb/gadget/atmel_usba_udc.c +++ b/drivers/usb/gadget/atmel_usba_udc.c | |||
@@ -326,13 +326,7 @@ static int vbus_is_present(struct usba_udc *udc) | |||
326 | return 1; | 326 | return 1; |
327 | } | 327 | } |
328 | 328 | ||
329 | #if defined(CONFIG_AVR32) | 329 | #if defined(CONFIG_ARCH_AT91SAM9RL) |
330 | |||
331 | static void toggle_bias(int is_on) | ||
332 | { | ||
333 | } | ||
334 | |||
335 | #elif defined(CONFIG_ARCH_AT91) | ||
336 | 330 | ||
337 | #include <mach/at91_pmc.h> | 331 | #include <mach/at91_pmc.h> |
338 | 332 | ||
@@ -346,7 +340,13 @@ static void toggle_bias(int is_on) | |||
346 | at91_sys_write(AT91_CKGR_UCKR, uckr & ~(AT91_PMC_BIASEN)); | 340 | at91_sys_write(AT91_CKGR_UCKR, uckr & ~(AT91_PMC_BIASEN)); |
347 | } | 341 | } |
348 | 342 | ||
349 | #endif /* CONFIG_ARCH_AT91 */ | 343 | #else |
344 | |||
345 | static void toggle_bias(int is_on) | ||
346 | { | ||
347 | } | ||
348 | |||
349 | #endif /* CONFIG_ARCH_AT91SAM9RL */ | ||
350 | 350 | ||
351 | static void next_fifo_transaction(struct usba_ep *ep, struct usba_request *req) | 351 | static void next_fifo_transaction(struct usba_ep *ep, struct usba_request *req) |
352 | { | 352 | { |