From patchwork Fri Sep 18 16:52:58 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: 7219431 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id DD06ABF036 for ; Fri, 18 Sep 2015 16:54:49 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 0ED0820671 for ; Fri, 18 Sep 2015 16:54:49 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 2071320920 for ; Fri, 18 Sep 2015 16:54:48 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1Zcyuc-00072d-PQ; Fri, 18 Sep 2015 16:53:26 +0000 Received: from mail-wi0-x232.google.com ([2a00:1450:400c:c05::232]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1ZcyuZ-0006rT-7w; Fri, 18 Sep 2015 16:53:23 +0000 Received: by wicge5 with SMTP id ge5so40735567wic.0; Fri, 18 Sep 2015 09:52:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:date:to:cc:subject:message-id:mime-version:content-type :content-disposition:user-agent; bh=9DfAph6mmP0fZ9H+WUCEYtZdPi8ymE2M46VQVit3XsM=; b=dSZUAZ+1vvY3xGeymNe52zpe/OJCt/o4LDLxi1+BOz6PN7CYHZJS5Rs3oE9/nF5d5R 39IUtqzLFUqT4v/HBnJorVCyui6nXKF1CiIQ7RxR3mmQ7A8KSGJdGLU1p+EtIA6DrR99 YLVNjSVlj/SsDaROkaIdR5E9EkpPRgakE74+Urfw3K2TW3gYGYHVzjJqyr9Ld9MqiSY2 75biEcExqPXnKHkfpbkxXfoTi+UAYIF5NiPgFgw7emonf5hYpyGkWmNXM2HpDrAJvoAG EzVSGqNpo67gvN9JvlQ0X+ufzLTgKGDjnL6z7MSMDn63/Wd6dHoROYUOD0I5XB1dZ0PZ Jxjw== X-Received: by 10.180.73.229 with SMTP id o5mr37941863wiv.36.1442595179467; Fri, 18 Sep 2015 09:52:59 -0700 (PDT) Received: from localhost (goodgumbo.baconseed.org. [94.23.38.65]) by smtp.gmail.com with ESMTPSA id s16sm16410724wik.13.2015.09.18.09.52.58 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Fri, 18 Sep 2015 09:52:58 -0700 (PDT) From: Luis de Bethencourt X-Google-Original-From: Luis de Bethencourt Date: Fri, 18 Sep 2015 18:52:58 +0200 To: linux-kernel@vger.kernel.org Subject: [PATCH] PM / AVS: rockchip-io: Fix module autoload for OF platform driver Message-ID: <20150918165258.GA27398@goodgumbo.baconseed.org> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20150918_095323_468384_1918BE0B X-CRM114-Status: GOOD ( 11.43 ) X-Spam-Score: -2.6 (--) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Nishanth Menon , Heiko Stuebner , linux-pm@vger.kernel.org, Kevin Hilman , linux-rockchip@lists.infradead.org, linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED, T_DKIM_INVALID, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.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 Reviewed-by: Heiko Stuebner --- Hello, This patch adds the missing MODULE_DEVICE_TABLE() for OF to export 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 drivers/power/avs/rockchip-io-domain.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/power/avs/rockchip-io-domain.c b/drivers/power/avs/rockchip-io-domain.c index 2e30002..8099456 100644 --- a/drivers/power/avs/rockchip-io-domain.c +++ b/drivers/power/avs/rockchip-io-domain.c @@ -271,6 +271,7 @@ static const struct of_device_id rockchip_iodomain_match[] = { }, { /* sentinel */ }, }; +MODULE_DEVICE_TABLE(of, rockchip_iodomain_match); static int rockchip_iodomain_probe(struct platform_device *pdev) {