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: 7219361 Return-Path: X-Original-To: patchwork-linux-pm@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 3E73DBEEC1 for ; Fri, 18 Sep 2015 16:53:05 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 68DA120913 for ; Fri, 18 Sep 2015 16:53:04 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 7DDC0208E6 for ; Fri, 18 Sep 2015 16:53:03 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754301AbbIRQxB (ORCPT ); Fri, 18 Sep 2015 12:53:01 -0400 Received: from mail-wi0-f173.google.com ([209.85.212.173]:32813 "EHLO mail-wi0-f173.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753701AbbIRQxA (ORCPT ); Fri, 18 Sep 2015 12:53:00 -0400 Received: by wiclk2 with SMTP id lk2so72244462wic.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 Cc: Kevin Hilman , Nishanth Menon , Heiko Stuebner , linux-pm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.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) Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID,T_RP_MATCHES_RCVD,UNPARSEABLE_RELAY autolearn=unavailable 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) {