From patchwork Wed Sep 19 15:21:41 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: jrm.kurtz@gmail.com X-Patchwork-Id: 1478131 Return-Path: X-Original-To: patchwork-linux-omap@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork1.kernel.org (Postfix) with ESMTP id 8D5823FE65 for ; Wed, 19 Sep 2012 15:27:15 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755962Ab2ISP1O (ORCPT ); Wed, 19 Sep 2012 11:27:14 -0400 Received: from mail-wg0-f44.google.com ([74.125.82.44]:42704 "EHLO mail-wg0-f44.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754790Ab2ISP1M (ORCPT ); Wed, 19 Sep 2012 11:27:12 -0400 Received: by wgbdr13 with SMTP id dr13so948414wgb.1 for ; Wed, 19 Sep 2012 08:27:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:x-mailer; bh=4NzPuwD0IWqIsXTciVhATtKiE859TrbTQ6NbjcEkMd4=; b=S8a8oYRlKoE+U8pVu4OJyCijo3HooEfdLURRcQFqD0nbM1a+mc/GEE9gfMnAOO+rRa DolyPeYoCfeCq429qhz/DYP/rXhkcvKTVS6rArCdzmvr0lo44NPcbo6V/+xbUweURJ4l hxC6wihHIXaAsZ6KW3FGfwxbPdvVQ9hbcxlbaBM5/COmOHxuUa0B6j8AQghVzo0MHryz hP6TCnVllBnBRPgJKdPOBL4a3M4sfMjTPkbwmP57K+NJ6t1bzDXmp79L/tSvCVOkYXN0 gKJ05Ul2fRnwPULAjf+WUUZNm0hwPkM8qC7hDe/1kv3WuCWUjKF9mcKhlKMGpgvoYd17 9vfQ== Received: by 10.180.100.131 with SMTP id ey3mr7430451wib.15.1348068431442; Wed, 19 Sep 2012 08:27:11 -0700 (PDT) Received: from localhost.localdomain (mar92-17-78-228-214-160.fbx.proxad.net. [78.228.214.160]) by mx.google.com with ESMTPS id o2sm5478809wiz.11.2012.09.19.08.27.08 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 19 Sep 2012 08:27:10 -0700 (PDT) From: jrm.kurtz@gmail.com To: balbi@ti.com Cc: linux-usb@vger.kernel.org, linux-omap@vger.kernel.org, anisse@astier.eu, Jerome Kurtz Subject: [PATCH] usb: otg: Resolving a config conflict between omap4030_usb/omap6030 and usb_musb_omap2plus Date: Wed, 19 Sep 2012 17:21:41 +0200 Message-Id: <1348068101-2346-1-git-send-email-jrm.kurtz@gmail.com> X-Mailer: git-send-email 1.7.2.5 Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org From: Jerome Kurtz When I try to compile with TWL6030_USB=y, TWL4030_USB=y and USB_MUSB_OMAP2PLUS=m, I get the following error: drivers/built-in.o: In function `twl4030_usb_irq': /home/xxx/kernel/linux/drivers/usb/otg/twl4030-usb.c:518: undefined reference to `omap_musb_mailbox' drivers/built-in.o: In function `twl6030_usb_irq': /home/xxx/kernel/linux/drivers/usb/otg/twl6030-usb.c:272: undefined reference to `omap_musb_mailbox' /home/xxx/kernel/linux/drivers/usb/otg/twl6030-usb.c:277: undefined reference to `omap_musb_mailbox' drivers/built-in.o: In function `twl6030_usbotg_irq': /home/xxx/kernel/linux/drivers/usb/otg/twl6030-usb.c:306: undefined reference to `omap_musb_mailbox' drivers/built-in.o: In function `twl4030_usb_phy_init': /home/xxx/kernel/linux/drivers/usb/otg/twl4030-usb.c:540: undefined reference to `omap_musb_mailbox' make: *** [vmlinux] Error 1 To solve this we must add to depends of TWL4030_USB and TWL6030_USB the option : USB_MUSB_OMAP2PLUS as done here. Signed-off-by: Jerome Kurtz --- drivers/usb/otg/Kconfig | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/usb/otg/Kconfig b/drivers/usb/otg/Kconfig index 13fd1ddf..62ea57b 100644 --- a/drivers/usb/otg/Kconfig +++ b/drivers/usb/otg/Kconfig @@ -58,7 +58,7 @@ config USB_ULPI_VIEWPORT config TWL4030_USB tristate "TWL4030 USB Transceiver Driver" - depends on TWL4030_CORE && REGULATOR_TWL4030 + depends on TWL4030_CORE && REGULATOR_TWL4030 && USB_MUSB_OMAP2PLUS select USB_OTG_UTILS help Enable this to support the USB OTG transceiver on TWL4030 @@ -68,7 +68,7 @@ config TWL4030_USB config TWL6030_USB tristate "TWL6030 USB Transceiver Driver" - depends on TWL4030_CORE + depends on TWL4030_CORE && USB_MUSB_OMAP2PLUS select USB_OTG_UTILS help Enable this to support the USB OTG transceiver on TWL6030