diff options
author | Sudip Mukherjee <sudipm.mukherjee@gmail.com> | 2015-09-19 22:42:58 +0530 |
---|---|---|
committer | Felipe Balbi <balbi@ti.com> | 2015-10-01 12:40:23 -0500 |
commit | 9af9195426685ffd7c81022002b0db3fd7040591 (patch) | |
tree | 5250e2620514e7de39bcaf0e79575dddabeb91b5 /drivers/usb/gadget | |
parent | 1b7015083486e0e5b919981c980980afca37507e (diff) | |
download | lwn-9af9195426685ffd7c81022002b0db3fd7040591.tar.gz lwn-9af9195426685ffd7c81022002b0db3fd7040591.zip |
usb: gadget: at91_udc: mention proper dependency
While building allmodconfig on avr32 the build failed with the error:
"at91_pmc_base" [drivers/usb/gadget/udc/atmel_usba_udc.ko] undefined!
On checking the code it turned out that if CONFIG_OF is defined then it
is using at91_pmc_read() which is using at91_pmc_base. And unless
COMMON_CLK_AT91 is defined we donot have at91_pmc_base. And
COMMON_CLK_AT91 is available with AT91 architecture.
Mention the dependency such that this driver builds with avr32 only if
OF is not enabled.
Signed-off-by: Sudip Mukherjee <sudip@vectorindia.org>
Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'drivers/usb/gadget')
-rw-r--r-- | drivers/usb/gadget/udc/Kconfig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/gadget/udc/Kconfig b/drivers/usb/gadget/udc/Kconfig index 9a3a6b00391a..cdbff54e07ac 100644 --- a/drivers/usb/gadget/udc/Kconfig +++ b/drivers/usb/gadget/udc/Kconfig @@ -55,7 +55,7 @@ config USB_LPC32XX config USB_ATMEL_USBA tristate "Atmel USBA" - depends on AVR32 || ARCH_AT91 + depends on ((AVR32 && !OF) || ARCH_AT91) help USBA is the integrated high-speed USB Device controller on the AT32AP700x, some AT91SAM9 and AT91CAP9 processors from Atmel. |