From patchwork Tue Feb 2 11:40:01 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maulik Mankad X-Patchwork-Id: 76354 X-Patchwork-Delegate: tony@atomide.com Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.3/8.14.3) with ESMTP id o12BeEA0016711 for ; Tue, 2 Feb 2010 11:40:14 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755519Ab0BBLkN (ORCPT ); Tue, 2 Feb 2010 06:40:13 -0500 Received: from comal.ext.ti.com ([198.47.26.152]:34359 "EHLO comal.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751546Ab0BBLkM (ORCPT ); Tue, 2 Feb 2010 06:40:12 -0500 Received: from dbdp31.itg.ti.com ([172.24.170.98]) by comal.ext.ti.com (8.13.7/8.13.7) with ESMTP id o12Be3sS003940 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 2 Feb 2010 05:40:05 -0600 Received: from linfarm476.india.ti.com (localhost [127.0.0.1]) by dbdp31.itg.ti.com (8.13.8/8.13.8) with ESMTP id o12Be2td001915; Tue, 2 Feb 2010 17:10:02 +0530 (IST) Received: from linfarm476.india.ti.com (localhost [127.0.0.1]) by linfarm476.india.ti.com (8.12.11/8.12.11) with ESMTP id o12Be1RT027034; Tue, 2 Feb 2010 17:10:01 +0530 Received: (from x0082077@localhost) by linfarm476.india.ti.com (8.12.11/8.12.11/Submit) id o12Be10G027032; Tue, 2 Feb 2010 17:10:01 +0530 From: Maulik Mankad To: linux-omap@vger.kernel.org Cc: linux-usb@vger.kernel.org, Maulik Mankad , Tony Lindgren , Felipe Balbi , Greg Kroah-Hartman , Olof Johansson , Sergei Shtylyov , "Gupta, Ajay Kumar" Subject: [PATCH v4 1/4] USB : Add empty functions in otg.h Date: Tue, 2 Feb 2010 17:10:01 +0530 Message-Id: <1265110801-26986-1-git-send-email-x0082077@ti.com> X-Mailer: git-send-email 1.5.5 Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter.kernel.org [140.211.167.41]); Tue, 02 Feb 2010 11:40:14 +0000 (UTC) Index: linux-2.6/include/linux/usb/otg.h =================================================================== --- linux-2.6.orig/include/linux/usb/otg.h +++ linux-2.6/include/linux/usb/otg.h @@ -110,9 +110,19 @@ struct otg_transceiver { /* for board-specific init logic */ extern int otg_set_transceiver(struct otg_transceiver *); +#if defined(CONFIG_NOP_USB_XCEIV) || defined(CONFIG_NOP_USB_XCEIV_MODULE) /* sometimes transceivers are accessed only through e.g. ULPI */ extern void usb_nop_xceiv_register(void); extern void usb_nop_xceiv_unregister(void); +#else +static inline void usb_nop_xceiv_register(void) +{ +} + +static inline void usb_nop_xceiv_unregister(void) +{ +} +#endif /* helpers for direct access thru low-level io interface */ static inline int otg_io_read(struct otg_transceiver *otg, u32 reg)