From patchwork Tue Jan 5 08:46:58 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maulik Mankad X-Patchwork-Id: 70950 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.2) with ESMTP id o058lbJT017727 for ; Tue, 5 Jan 2010 08:47:37 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753472Ab0AEIrf (ORCPT ); Tue, 5 Jan 2010 03:47:35 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753186Ab0AEIrf (ORCPT ); Tue, 5 Jan 2010 03:47:35 -0500 Received: from devils.ext.ti.com ([198.47.26.153]:41135 "EHLO devils.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752441Ab0AEIre (ORCPT ); Tue, 5 Jan 2010 03:47:34 -0500 Received: from dbdp31.itg.ti.com ([172.24.170.98]) by devils.ext.ti.com (8.13.7/8.13.7) with ESMTP id o058kx67024253 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 5 Jan 2010 02:47:02 -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 o058kwwh014533; Tue, 5 Jan 2010 14:16:58 +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 o058kwSM006921; Tue, 5 Jan 2010 14:16:58 +0530 Received: (from x0082077@localhost) by linfarm476.india.ti.com (8.12.11/8.12.11/Submit) id o058kwD1006919; Tue, 5 Jan 2010 14:16:58 +0530 From: Maulik Mankad To: linux-usb@vger.kernel.org Cc: linux-omap@vger.kernel.org, Maulik Mankad , Tony Lindgren , Felipe Balbi , Greg Kroah-Hartman , Olof Johansson , Sergei Shtylyov , "Gupta, Ajay Kumar" Subject: [PATCH v3 1/2] USB: Add empty functions in otg.h Date: Tue, 5 Jan 2010 14:16:58 +0530 Message-Id: <1262681218-6875-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 Index: felipe_musb/include/linux/usb/otg.h =================================================================== --- felipe_musb.orig/include/linux/usb/otg.h +++ felipe_musb/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) /* 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)