From patchwork Thu Sep 3 11:03:04 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Luis de Bethencourt X-Patchwork-Id: 7116081 Return-Path: X-Original-To: patchwork-alsa-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id C60B39F1CD for ; Thu, 3 Sep 2015 11:09:35 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id E528620822 for ; Thu, 3 Sep 2015 11:09:34 +0000 (UTC) Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.kernel.org (Postfix) with ESMTP id A7E8920812 for ; Thu, 3 Sep 2015 11:09:33 +0000 (UTC) Received: by alsa0.perex.cz (Postfix, from userid 1000) id C2C9A265867; Thu, 3 Sep 2015 13:09:32 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Spam-Status: No, score=-2.5 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_LOW, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 Received: from alsa0.perex.cz (localhost [IPv6:::1]) by alsa0.perex.cz (Postfix) with ESMTP id C3C6426590A; Thu, 3 Sep 2015 13:06:48 +0200 (CEST) X-Original-To: alsa-devel@alsa-project.org Delivered-To: alsa-devel@alsa-project.org Received: by alsa0.perex.cz (Postfix, from userid 1000) id AF5A926590A; Thu, 3 Sep 2015 13:06:47 +0200 (CEST) Received: from mail-wi0-f177.google.com (mail-wi0-f177.google.com [209.85.212.177]) by alsa0.perex.cz (Postfix) with ESMTP id 071E4265928 for ; Thu, 3 Sep 2015 13:03:06 +0200 (CEST) Received: by wicfx3 with SMTP id fx3so15775140wic.1 for ; Thu, 03 Sep 2015 04:03:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:date:from:to:cc:subject:message-id:mime-version:content-type :content-disposition:user-agent; bh=8qBID72eDWcRrp/e4yMf/axAwMEsfnl6oIWqvRF477w=; b=pNFPlmpRSq7qHf5QFqCfY8azLYFkbguEszzF2npnCPA+ooBnVT7C84Ugd+9ZMZKiEV 7zxgGzsurL/mUQzuHNxy6KdA0R6yywoEihAQ+6Ee+bLLW4Za/LcUzHb2hgI8GC8cTKCO dMJWbHM1ZcAsrfD88E5+c6I46KmET72imCcJjr8JDVA2tFwbkToS4lh7XDED08tLZc7K WG7LF+Mp3/NN5flKrc8X5v47HuIYeZi0BCRhwJhb0rzjfYHHx/IrYGBFwAO0tXFsBFdk KuwV/IcjdNiLBFKN+HEyAkfub8KqSMN6ycY7x0+avKs0rG8hGsbHyoM8Ob+5nDg03Qhu m4Ag== X-Received: by 10.194.78.230 with SMTP id e6mr50134729wjx.43.1441278185756; Thu, 03 Sep 2015 04:03:05 -0700 (PDT) Received: from localhost (goodgumbo.baconseed.org. [94.23.38.65]) by smtp.gmail.com with ESMTPSA id d17sm37180376wjs.32.2015.09.03.04.03.04 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Thu, 03 Sep 2015 04:03:05 -0700 (PDT) Date: Thu, 3 Sep 2015 13:03:04 +0200 From: Luis de Bethencourt To: linux-kernel@vger.kernel.org Message-ID: <20150903110304.GA17142@goodgumbo.baconseed.org> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) Cc: alsa-devel@alsa-project.org, Wolfram Sang , Takashi Iwai , Javier Martinez Canillas , Christophe JAILLET Subject: [alsa-devel] [PATCH] ALSA: sparc: amd7930: Fix module autoload for OF platform driver X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org X-Virus-Scanned: ClamAV using ClamSMTP 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 --- 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 = {