From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mark Brown Subject: Re: [PATCH v2] ASoC: omap: convert per-board modules to platform drivers Date: Thu, 8 Sep 2011 11:18:32 -0700 Message-ID: <20110908181831.GE3591@opensource.wolfsonmicro.com> References: <1315503297-8365-1-git-send-email-mans.rullgard@linaro.org> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: alsa-devel-bounces@alsa-project.org Errors-To: alsa-devel-bounces@alsa-project.org To: Jassi Brar Cc: alsa-devel@alsa-project.org, Russell King , Liam Girdwood , Tony Lindgren , linux-kernel@vger.kernel.org, Takashi Iwai , linaro-dev@lists.linaro.org, linux-omap@vger.kernel.org, Mans Rullgard , linux-arm-kernel@lists.infradead.org List-Id: linux-omap@vger.kernel.org On Thu, Sep 08, 2011 at 11:47:16PM +0530, Jassi Brar wrote: > Can't we do by having omap_init_audio() in arch/arm/mach-omap2/devices.c > generate a platform device of name depending upon machine_is_* ? That's not a bad idea. If we were going to do that it shouldn't be OMAP specific, any platform could use it. Though we'd need a way to override it to provide platform data on systems that needs it.