Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp495904pxx; Wed, 28 Oct 2020 09:37:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyc2IfsFM5N92cyc+ffFT0K2nH3wGgYw/urp5s3VMg+KFZIqHiVQxEj9oXi8izCpvU0gNA4 X-Received: by 2002:aa7:c7d9:: with SMTP id o25mr9007000eds.318.1603903047535; Wed, 28 Oct 2020 09:37:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603903047; cv=none; d=google.com; s=arc-20160816; b=kNsM/lBcvSDmM6Qik8OO11jqrGnsKRrGwdBWbAwxyuLikgKxhjZtlOZ1XJTrr3NBmk d8BjulP525Pe4FAAWDEpZN7WzZPUgn2Rk0nxHGGkpM+VCcsBjHi2VD1MJwZZS9kwg7y4 LlDcV9Ga1IFLksmK214M+ZwRPkT6LbkZMWA6WJpEUfkSDhY/jVBBmkVe1RWqgTmO+7Cq J6U+RKOtxOfnWvcksNsgHyQCMFlR/PqiHdwLqe6peN3b6YxJEt9wqWipAN43zJQLRwHF UQOJr9ZwWQe+p0ToYD35frpWYqdxIh5NEVXuYG9s5XUkc45ImOVtQeFwuX/2z6/hjvEk DO4w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=8cHoxJqAXHERaNNXscmKy2zBqRuAazqVWoOY0S4+kAg=; b=wSxp2RXWjEDTqVRMl3llSwKu5xukrAI6KKUD5vA21+7vRSMhSyZoy3ohdCypn0zykH FiYBywntAl5k5D7xexbth90kXCCIEzZqu6ohjAXVnA7DLfSUhtppEiXjeVPrlaLFPvAq VA4cr8aLkakJdOHYorgUbYVYju2dlY2sw0ARZzTsxS0+tCDmDxTBHI/GunhbFPLySJPy l5bFVuVggzsx9YGHw5WacO5UV47cf7ncTy/8L9Igdn1VHnCqhngsF6GQ9dRiTvWIGc3k BBqXGMQeLKmKJnoyL+Xib09TMHxQs2dc/ndYD2c48OzawDRV014HO9jkor2YVOKoDyYs rLxQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=BiNmDh1S; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id bu23si3620690ejb.83.2020.10.28.09.37.04; Wed, 28 Oct 2020 09:37:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=BiNmDh1S; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1810129AbgJ0RRd (ORCPT + 99 others); Tue, 27 Oct 2020 13:17:33 -0400 Received: from mail.kernel.org ([198.145.29.99]:59020 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1783095AbgJ0O5w (ORCPT ); Tue, 27 Oct 2020 10:57:52 -0400 Received: from localhost (83-86-74-64.cable.dynamic.v4.ziggo.nl [83.86.74.64]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 68D3B20714; Tue, 27 Oct 2020 14:57:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1603810672; bh=/VwmD1Zgho6r0gxvEmXLjOl1yLHfntqI3FFJRejA3vA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=BiNmDh1Stmzxmx66SqD2Bp76cSQFWkP5lWge5b9r5Yp+bb2HpwuSCTNbYvXOuVt5T jU5EiTIo8e3nACnc3EROoV+nDxA9wu0qsct0Jh14RF6VwlnoLJ5BY3BzypxuUDb324 fi3Ke1imwhXt9TA0aocKwg9JepD+EZL0JscERZew= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Andrew Lunn , =?UTF-8?q?Pali=20Roh=C3=A1r?= , Viresh Kumar , Sasha Levin Subject: [PATCH 5.8 223/633] cpufreq: armada-37xx: Add missing MODULE_DEVICE_TABLE Date: Tue, 27 Oct 2020 14:49:26 +0100 Message-Id: <20201027135533.142192260@linuxfoundation.org> X-Mailer: git-send-email 2.29.1 In-Reply-To: <20201027135522.655719020@linuxfoundation.org> References: <20201027135522.655719020@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Pali Rohár [ Upstream commit c942d1542f1bc5001216fabce9cb8ffbe515777e ] CONFIG_ARM_ARMADA_37XX_CPUFREQ is tristate option and therefore this cpufreq driver can be compiled as a module. This patch adds missing MODULE_DEVICE_TABLE which generates correct modalias for automatic loading of this cpufreq driver when is compiled as an external module. Reviewed-by: Andrew Lunn Signed-off-by: Pali Rohár Fixes: 92ce45fb875d7 ("cpufreq: Add DVFS support for Armada 37xx") [ Viresh: Added __maybe_unused ] Signed-off-by: Viresh Kumar Signed-off-by: Sasha Levin --- drivers/cpufreq/armada-37xx-cpufreq.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/drivers/cpufreq/armada-37xx-cpufreq.c b/drivers/cpufreq/armada-37xx-cpufreq.c index df1c941260d14..b4af4094309b0 100644 --- a/drivers/cpufreq/armada-37xx-cpufreq.c +++ b/drivers/cpufreq/armada-37xx-cpufreq.c @@ -484,6 +484,12 @@ static int __init armada37xx_cpufreq_driver_init(void) /* late_initcall, to guarantee the driver is loaded after A37xx clock driver */ late_initcall(armada37xx_cpufreq_driver_init); +static const struct of_device_id __maybe_unused armada37xx_cpufreq_of_match[] = { + { .compatible = "marvell,armada-3700-nb-pm" }, + { }, +}; +MODULE_DEVICE_TABLE(of, armada37xx_cpufreq_of_match); + MODULE_AUTHOR("Gregory CLEMENT "); MODULE_DESCRIPTION("Armada 37xx cpufreq driver"); MODULE_LICENSE("GPL"); -- 2.25.1