From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mark Brown Subject: Re: [PATCH] General fix for Palm27x aSoC driver Date: Sun, 12 Apr 2009 18:58:00 +0100 Message-ID: <20090412175800.GA8209@sirena.org.uk> References: <200904121858.42931.marek.vasut@gmail.com> <20090412170626.GD4295@sirena.org.uk> <200904121920.15488.marek.vasut@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from cassiel.sirena.org.uk (cassiel.sirena.org.uk [80.68.93.111]) by alsa0.perex.cz (Postfix) with ESMTP id C7F2F103811 for ; Sun, 12 Apr 2009 19:58:01 +0200 (CEST) Content-Disposition: inline In-Reply-To: <200904121920.15488.marek.vasut@gmail.com> 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: Marek Vasut Cc: Eric Miao , alsa-devel@alsa-project.org, Russell King - ARM Linux , linux-arm-kernel@lists.arm.linux.org.uk List-Id: alsa-devel@alsa-project.org On Sun, Apr 12, 2009 at 07:20:15PM +0200, Marek Vasut wrote: > On Sunday 12 of April 2009 19:06:26 Mark Brown wrote: > > > +static struct platform_device palmld_pxa2xx_pcm = { > > This should follow the pattern that everything else uses with the struct > > platform_device in devices.c and board files triggering registration of > > that. > Half of the platforms use static struct, half use struct. Probably someone > should send a huge patch to make it consistent. I'd like to have it > consistent at least inside the platform file. The general rule is that if it's a part of the CPU it should go in devices.c - things that aren't doing that are mostly just waiting for cleanup. > > > +static struct platform_device palmld_pxa2xx_ac97 = { > > > + .name = "pxa2xx-ac97", > > > + .id = -1, > > > + .dev = { > > > + .platform_data = &palmld_ac97_pdata, > > > + }, > > > +}; > > No, use pxa_set_ac97_info(). > How? Pass the platform data as the argument. This will currently involve merging the two different platform data structures that we have right now.