Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753014Ab2H1PUm (ORCPT ); Tue, 28 Aug 2012 11:20:42 -0400 Received: from d1.icnet.pl ([212.160.220.21]:50181 "EHLO d1.icnet.pl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751982Ab2H1PUk (ORCPT ); Tue, 28 Aug 2012 11:20:40 -0400 From: Janusz Krzysztofik To: alsa-devel@alsa-project.org Cc: Mark Brown , linux-omap@vger.kernel.org, Liam Girdwood , linux-kernel@vger.kernel.org Subject: Re: [alsa-devel] [PATCH] ASoC: ams-delta: fix card initalization failure Date: Tue, 28 Aug 2012 17:13:05 +0200 Message-ID: <3048168.EXxi4fR4e7@acer> Organization: Tele-Info-System, Poznan, PL User-Agent: KMail/4.8.3 (Linux/3.3.8-gentoo; KDE/4.8.3; i686; ; ) In-Reply-To: <20120827213835.GE4400@opensource.wolfsonmicro.com> References: <1346102910-8610-1-git-send-email-jkrzyszt@tis.icnet.pl> <20120827213835.GE4400@opensource.wolfsonmicro.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="utf-8" X-SA-Exim-Scanned: No (on d1.icnet); SAEximRunCond expanded to false Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 977 Lines: 28 On Mon, 27 Aug 2012 14:38:35 Mark Brown wrote: > On Mon, Aug 27, 2012 at 11:28:30PM +0200, Janusz Krzysztofik wrote: > > > - platform_set_drvdata(ams_delta_audio_platform_device, > > - &ams_delta_audio_card); > > - > > - ret = platform_device_add(ams_delta_audio_platform_device); > > - if (ret) > > - goto err; > > The real fix here is that you should be using platform data here, not > driver data. Is there some reason not to do that? Mark, Do you think the change you propose is suitable for the rc cycle? I'm trying to fix a regression in the first place. Converting the ams-delta asoc to a platform driver is on my todo list and I'm going to take care of this as soon as I have enough spare time. Thanks, Janusz -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/