From patchwork Fri Jan 8 01:03:12 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Francisco Alecrim X-Patchwork-Id: 71704 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.3/8.14.2) with ESMTP id o0813kiI010845 for ; Fri, 8 Jan 2010 01:03:51 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754541Ab0AHBDo (ORCPT ); Thu, 7 Jan 2010 20:03:44 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1754553Ab0AHBDn (ORCPT ); Thu, 7 Jan 2010 20:03:43 -0500 Received: from mail-gx0-f211.google.com ([209.85.217.211]:38330 "EHLO mail-gx0-f211.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754526Ab0AHBDl (ORCPT ); Thu, 7 Jan 2010 20:03:41 -0500 Received: by gxk3 with SMTP id 3so8159840gxk.1 for ; Thu, 07 Jan 2010 17:03:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:cc:subject:date :message-id:x-mailer:in-reply-to:references; bh=RgeMe1pJRF86TaTH3U2D67tQu9ecA/XozSyRKPZjc4Q=; b=NXsgt9xD0DwvQBPHScYQw9kdjABxEISF18K4VeLLJvc6KlCKkUXjgEqW81H66yBmLQ 4GDxV2iCRs+WDbel4T33HHvzuzrCeStK2s+iQhQ7hxg7QLF9G7zuCMCqm9q6KJ08QBx2 ZtQaVb6iGpyJJ6GK+vZBfPr5eylcOwtFKdM0c= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references; b=XiZZAEhA+FGHUTzWwWMHIPSldaVJt5S0OnRX7+WuxR0O7S6VNzWOs3xsx+bkpPRcV/ fA44eI6HBRpYy6pzObZv4Iw3OwJEngPBpiPJaAgPuje7D0bkLvAvV/PbcJn+eHkBsZUv 3QF8/5vdn+/A+KT2rF8fZ52WXiuTusIUDlI4I= Received: by 10.90.21.1 with SMTP id 1mr3061718agu.26.1262912620230; Thu, 07 Jan 2010 17:03:40 -0800 (PST) Received: from localhost.localdomain ([189.2.128.130]) by mx.google.com with ESMTPS id 4sm9014061yxd.34.2010.01.07.17.03.37 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 07 Jan 2010 17:03:39 -0800 (PST) From: Francisco Alecrim To: linux-omap@vger.kernel.org, linux-usb@vger.kernel.org Cc: Francisco Alecrim Subject: [RFC/PATCH 2/2] fix compile for tahvo-usb.c Date: Thu, 7 Jan 2010 21:03:12 -0400 Message-Id: <1262912592-7817-2-git-send-email-alecrim@gmail.com> X-Mailer: git-send-email 1.6.3.3 In-Reply-To: <1262912592-7817-1-git-send-email-alecrim@gmail.com> References: <1262912592-7817-1-git-send-email-alecrim@gmail.com> Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org diff --git a/drivers/cbus/tahvo-usb.c b/drivers/cbus/tahvo-usb.c index 9f8bbcc..762671a 100644 --- a/drivers/cbus/tahvo-usb.c +++ b/drivers/cbus/tahvo-usb.c @@ -132,12 +132,14 @@ static irqreturn_t omap_otg_irq(int irq, void *arg) } else if (otg_irq & A_VBUS_ERR) { omap_writew(A_VBUS_ERR, OTG_IRQ_SRC); } else if (otg_irq & DRIVER_SWITCH) { +#ifdef CONFIG_USB_OTG if ((!(omap_readl(OTG_CTRL) & OTG_DRIVER_SEL)) && tu->otg.host && tu->otg.state == OTG_STATE_A_HOST) { /* role is host */ usb_bus_start_enum(tu->otg.host, tu->otg.host->otg_port); } +#endif omap_writew(DRIVER_SWITCH, OTG_IRQ_SRC); } else return IRQ_NONE;