From mboxrd@z Thu Jan 1 00:00:00 1970 From: Felipe Balbi Subject: Re: [PATCH 2/2] ehci: Fix EHCI init for OMAP3EVM Date: Mon, 6 Jul 2009 12:50:59 +0300 Message-ID: <20090706095059.GQ8461@nokia.com> References: <1246867091-13495-1-git-send-email-ajay.gupta@ti.com> <4A51B500.1080004@gmail.com> <19F8576C6E063C45BE387C64729E739404328C675C@dbde02.ent.ti.com> Reply-To: felipe.balbi@nokia.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from smtp.nokia.com ([192.100.122.233]:57812 "EHLO mgw-mx06.nokia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752644AbZGFJvZ (ORCPT ); Mon, 6 Jul 2009 05:51:25 -0400 Content-Disposition: inline In-Reply-To: <19F8576C6E063C45BE387C64729E739404328C675C@dbde02.ent.ti.com> Sender: linux-omap-owner@vger.kernel.org List-Id: linux-omap@vger.kernel.org To: "ext Gupta, Ajay Kumar" Cc: Dmitry Krivoschekov , no To-header on input <"unlisted-recipients:;"@gmail.com>, "linux-omap@vger.kernel.org" , "Balbi Felipe (Nokia-D/Helsinki)" , "tony@atomide.com" Hi, On Mon, Jul 06, 2009 at 10:55:05AM +0200, ext Gupta, Ajay Kumar wrote: > Looks better but if USB itself is not included in the build then this part of code would be unnecessary in board-omap3evm.c. We again need to add some #ifdef there to avoid this. > > Another solution is to add something like board_is_omap3evm() in and use them in usb-ehci.c. > > Felipe, what do you suggest? how about passing setup() and cleanup() function pointers from board-file to the driver via platform_data ? the board-specific setup() could handle the mux config then. -- balbi