From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753316AbbIDKOX (ORCPT ); Fri, 4 Sep 2015 06:14:23 -0400 Received: from mx2.suse.de ([195.135.220.15]:50445 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750937AbbIDKOV (ORCPT ); Fri, 4 Sep 2015 06:14:21 -0400 Date: Fri, 04 Sep 2015 12:14:18 +0200 Message-ID: From: Takashi Iwai To: "Luis de Bethencourt" Cc: , , "Javier Martinez Canillas" , "Jaroslav Kysela" , "Wolfram Sang" , "Christophe JAILLET" Subject: Re: [PATCH] ALSA: sparc: amd7930: Fix module autoload for OF platform driver In-Reply-To: <20150903110304.GA17142@goodgumbo.baconseed.org> References: <20150903110304.GA17142@goodgumbo.baconseed.org> User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI/1.14.6 (Maruoka) FLIM/1.14.9 (=?UTF-8?B?R29qxY0=?=) APEL/10.8 Emacs/24.5 (x86_64-suse-linux-gnu) MULE/6.0 (HANACHIRUSATO) MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 03 Sep 2015 13:03:04 +0200, Luis de Bethencourt wrote: > > This platform driver has a OF device ID table but the OF module > alias information is not created so module autoloading won't work. > > Signed-off-by: Luis de Bethencourt Applied, thanks. Takashi > --- > > Hello, > > This patch adds the missing MODULE_DEVICE_TABLE() for OF to eport > that information so modules have the correct aliases built-in and > autoloading works correctly. > > A longer explanation by Javier Canillas can be found here: > https://lkml.org/lkml/2015/7/30/519 > > Thanks, > Luis > > sound/sparc/amd7930.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/sound/sparc/amd7930.c b/sound/sparc/amd7930.c > index 784ceb8..35c1f6a 100644 > --- a/sound/sparc/amd7930.c > +++ b/sound/sparc/amd7930.c > @@ -1064,6 +1064,7 @@ static const struct of_device_id amd7930_match[] = { > }, > {}, > }; > +MODULE_DEVICE_TABLE(of, amd7930_match); > > static struct platform_driver amd7930_sbus_driver = { > .driver = { > -- > 2.4.6 > >