usb: gadget: at91_udc: mention proper dependency
authorSudip Mukherjee <sudipm.mukherjee@gmail.com>
Sat, 19 Sep 2015 17:12:58 +0000 (22:42 +0530)
committerFelipe Balbi <balbi@ti.com>
Thu, 1 Oct 2015 17:40:23 +0000 (12:40 -0500)
commit9af9195426685ffd7c81022002b0db3fd7040591
tree5250e2620514e7de39bcaf0e79575dddabeb91b5
parent1b7015083486e0e5b919981c980980afca37507e
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>
drivers/usb/gadget/udc/Kconfig