From: Felipe Balbi Subject: Re: [PATCH 5/5] MAP4: DMIC: Add DMIC codec platform devices Date: Tue, 28 Dec 2010 13:23:25 +0200 Message-ID: <20101228112325.GC2239@legolas.emea.dhcp.ti.com> References: <1293509826-23253-1-git-send-email-dlambert@ti.com> <1293509826-23253-6-git-send-email-dlambert@ti.com> Reply-To: balbi@ti.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Return-path: Content-Disposition: inline In-Reply-To: <1293509826-23253-6-git-send-email-dlambert@ti.com> Sender: linux-omap-owner@vger.kernel.org To: David Lambert Cc: alsa-devel@alsa-project.org, linux-omap@vger.kernel.org, Liam Girdwood , Mark Brown , Tony Lindgren , Paul Walmsley List-Id: alsa-devel@alsa-project.org Hi, $SUBJECT should read OMAP4 instead of MAP4 On Mon, Dec 27, 2010 at 10:17:06PM -0600, David Lambert wrote: >This creates the DMIC codec platform devices. > >The platform devices create an instance of the driver during boot up. > >Signed-off-by: David Lambert is this a "virtual" device ? If not, where's HWMOD for it ? >diff --git a/arch/arm/mach-omap2/board-4430sdp.c b/arch/arm/mach-omap2/board-4430sdp.c >index df5a425..bf271e5 100644 >--- a/arch/arm/mach-omap2/board-4430sdp.c >+++ b/arch/arm/mach-omap2/board-4430sdp.c >@@ -505,6 +505,16 @@ static void __init omap_sfh7741prox_init(void) > } > } > >+static struct platform_device codec_dmic0 = { >+ .name = "dmic-codec", >+ .id = 0, if this is the only device, should id be -1 instead ? >+}; >+ >+static inline void omap_dmic_init(void) >+{ >+ platform_device_register(&codec_dmic0); Another option would be to use platform_device_register_simple("dmi-codec", -1); -- balbi