From patchwork Fri Oct 2 14:27:57 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Luis de Bethencourt X-Patchwork-Id: 7316721 X-Patchwork-Delegate: rjw@sisk.pl 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 B94E0BEEA4 for ; Fri, 2 Oct 2015 14:28:14 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id D2D7E208ED for ; Fri, 2 Oct 2015 14:28:13 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 05B192089E for ; Fri, 2 Oct 2015 14:28:13 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752040AbbJBO2L (ORCPT ); Fri, 2 Oct 2015 10:28:11 -0400 Received: from lists.s-osg.org ([54.187.51.154]:47038 "EHLO lists.s-osg.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752158AbbJBO2L (ORCPT ); Fri, 2 Oct 2015 10:28:11 -0400 Received: from snow.seri.co.uk (cpc9-slam5-2-0-cust824.2-4.cable.virginm.net [81.108.163.57]) by lists.s-osg.org (Postfix) with ESMTPSA id AD505462CB; Fri, 2 Oct 2015 07:28:08 -0700 (PDT) From: Luis de Bethencourt To: linux-kernel@vger.kernel.org, rafael.j.wysocki@intel.com Cc: khilman@kernel.org, nm@ti.com, heiko@sntech.de, linux-pm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, Luis de Bethencourt Subject: [PATCH v2] PM / AVS: rockchip-io: Fix module autoload for OF platform driver Date: Fri, 2 Oct 2015 15:27:57 +0100 Message-Id: <1443796077-24722-1-git-send-email-luisbg@osg.samsung.com> X-Mailer: git-send-email 2.5.1 MIME-Version: 1.0 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.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, 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 Acked-by: Kevin Hilman --- Hello, Sending a second version to add Rafael Wysocki in the to-list as suggested by Heiko Stübner. https://lkml.org/lkml/2015/10/2/431 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) {