From patchwork Wed Sep 16 20:24:46 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: 7199201 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 EB1EDBEEC1 for ; Wed, 16 Sep 2015 20:24:52 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 215D7207C1 for ; Wed, 16 Sep 2015 20:24:52 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id E7F76207BD for ; Wed, 16 Sep 2015 20:24:50 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752633AbbIPUYt (ORCPT ); Wed, 16 Sep 2015 16:24:49 -0400 Received: from mail-wi0-f176.google.com ([209.85.212.176]:35350 "EHLO mail-wi0-f176.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752354AbbIPUYt (ORCPT ); Wed, 16 Sep 2015 16:24:49 -0400 Received: by wicge5 with SMTP id ge5so90989713wic.0; Wed, 16 Sep 2015 13:24:48 -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=Ht2YduccmLRN6YxbNIQW8Dz6v0Xe7TmzJti22llgK6M=; b=PiQN9yfEh6MCLmY/Ap69l2eekpECMV1L5WMaXQZJwOoH/wslE+F/dRs82mkxEtzvnM jLFX3DH9Nf5hGvcL7xvmHZLFP4m7l/oMARRHHknTGL94PT+2d4efQeqU8oqfRSsA/O1p bpZar9kbsBLPbEdFjZ1J0v+5dg2VvWlgWBg7YTRIEk9OAqsl8TzC2AXZwrH24jcNEuJd omYejdGMMqiyp0IlS6ucojNYiGJlU0u5aAD3HJ0LVS4F1efqS3OSoNtueUW+Vg5Hkm/9 55b6VR2DQyH0/64Dg2/AVrZOQt85DwDy5up5IKvHqSEsOPJjo2xqWowJ0o7NRLNSRjc+ CHjw== X-Received: by 10.180.104.38 with SMTP id gb6mr218084wib.86.1442435087942; Wed, 16 Sep 2015 13:24:47 -0700 (PDT) Received: from localhost (goodgumbo.baconseed.org. [94.23.38.65]) by smtp.gmail.com with ESMTPSA id cm6sm6237102wib.22.2015.09.16.13.24.47 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Wed, 16 Sep 2015 13:24:47 -0700 (PDT) From: Luis de Bethencourt X-Google-Original-From: Luis de Bethencourt Date: Wed, 16 Sep 2015 22:24:46 +0200 To: linux-kernel@vger.kernel.org Cc: "Rafael J. Wysocki" , Viresh Kumar , linux-pm@vger.kernel.org Subject: [PATCH] cpufreq: integrator: Fix module autoload for OF platform driver Message-ID: <20150916202446.GA4303@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 Acked-by: Viresh Kumar --- 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/cpufreq/integrator-cpufreq.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/cpufreq/integrator-cpufreq.c b/drivers/cpufreq/integrator-cpufreq.c index 2faa421..79e3ff2 100644 --- a/drivers/cpufreq/integrator-cpufreq.c +++ b/drivers/cpufreq/integrator-cpufreq.c @@ -221,6 +221,8 @@ static const struct of_device_id integrator_cpufreq_match[] = { { }, }; +MODULE_DEVICE_TABLE(of, integrator_cpufreq_match); + static struct platform_driver integrator_cpufreq_driver = { .driver = { .name = "integrator-cpufreq",