[PATCH] usb: musb: Kconfig: Depend on some machines under blackfin

From: Chen Gang
Date: Fri Apr 03 2015 - 17:51:31 EST

Under blackfin, only bf527, bf548 and bf609 may use musb. The related
error with allmodconfig:

CC [M] drivers/usb/misc/trancevibrator.o
In file included from drivers/usb/musb/musb_core.h:70:0,
from drivers/usb/musb/musb_core.c:103:
drivers/usb/musb/musb_core.c: In function 'musb_indexed_ep_select':
drivers/usb/musb/musb_regs.h:458:32: error: 'USB_INDEX' undeclared (first use in this function)
#define MUSB_INDEX USB_OFFSET(USB_INDEX) /* 8 bit */

Signed-off-by: Chen Gang <gang.chen.5i5j@xxxxxxxxx>
drivers/usb/musb/Kconfig | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/usb/musb/Kconfig b/drivers/usb/musb/Kconfig
index 39db8b6..5fca898 100644
--- a/drivers/usb/musb/Kconfig
+++ b/drivers/usb/musb/Kconfig
@@ -6,7 +6,7 @@
# (M)HDRC = (Multipoint) Highspeed Dual-Role Controller
tristate 'Inventra Highspeed Dual Role Controller (TI, ADI, ...)'
- depends on (USB || USB_GADGET)
+ depends on (USB || USB_GADGET) && (!BLACKFIN || (BLACKFIN && (BF527 || BF548 || BF609)))
Say Y here if your system has a dual role high speed USB
controller based on the Mentor Graphics silicon IP. Then
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/