From patchwork Thu Sep 3 11:10:14 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: 7116091 X-Patchwork-Delegate: eduardo.valentin@ti.com Return-Path: X-Original-To: patchwork-linux-pm@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 2FD719F1CD for ; Thu, 3 Sep 2015 11:10:21 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 5595920823 for ; Thu, 3 Sep 2015 11:10:20 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 7B57A20814 for ; Thu, 3 Sep 2015 11:10:19 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754020AbbICLKS (ORCPT ); Thu, 3 Sep 2015 07:10:18 -0400 Received: from mail-wi0-f179.google.com ([209.85.212.179]:36766 "EHLO mail-wi0-f179.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752911AbbICLKR (ORCPT ); Thu, 3 Sep 2015 07:10:17 -0400 Received: by wibz8 with SMTP id z8so94901839wib.1; Thu, 03 Sep 2015 04:10:15 -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=5kLkZKBrSXM1r0ihTnk4LeYXpA9/GgnPZy2xoW/vPBU=; b=fIeLzlrHvHl+vXUXtH5xMFbDKoA6Sk98Strd2ms+vF5tQ67kgZJ8Mx+7ZhY5EpYbu1 87ENb0hJwoh3rPBXKx8LlNPP8D49CTvPLf7+vlTj7u4cabBYv+hHy4KwezBxtHMBdYUU DMlCDn2cIpln3IOadoeWMmrxLVhE+3yn5w7Nd1btV6qGxHPH1zHd2Bh1gvj8KfbcWOY4 QXFg+wQfGaxZt9QuYZojMU6k0bqsz52XuYbKYW/EnYVYZ7UhlBKfbeFn1NrdU7pdjA/+ bH5jsnd+v6QXt6BuLefPW2zOryUkfAoLieXdgK8hWfWBaYJvyCn3Ty+EHNHxW5IShNXS n6CQ== X-Received: by 10.194.175.233 with SMTP id cd9mr49782186wjc.68.1441278615608; Thu, 03 Sep 2015 04:10:15 -0700 (PDT) Received: from localhost (goodgumbo.baconseed.org. [94.23.38.65]) by smtp.gmail.com with ESMTPSA id fb3sm8432814wib.21.2015.09.03.04.10.14 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Thu, 03 Sep 2015 04:10:14 -0700 (PDT) Date: Thu, 3 Sep 2015 13:10:14 +0200 From: Luis de Bethencourt To: linux-kernel@vger.kernel.org Cc: Zhang Rui , Eduardo Valentin , linux-pm@vger.kernel.org, Javier Martinez Canillas Subject: [PATCH] thermal: db8500_cpufreq_cooling: Fix module autoload for OF platform driver Message-ID: <20150903111014.GA17660@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 --- 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 drivers/thermal/db8500_cpufreq_cooling.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/thermal/db8500_cpufreq_cooling.c b/drivers/thermal/db8500_cpufreq_cooling.c index 607b62c..e58bd0b 100644 --- a/drivers/thermal/db8500_cpufreq_cooling.c +++ b/drivers/thermal/db8500_cpufreq_cooling.c @@ -72,6 +72,7 @@ static const struct of_device_id db8500_cpufreq_cooling_match[] = { { .compatible = "stericsson,db8500-cpufreq-cooling" }, {}, }; +MODULE_DEVICE_TABLE(of, db8500_cpufreq_cooling_match); #endif static struct platform_driver db8500_cpufreq_cooling_driver = {