Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp524631pxx; Wed, 28 Oct 2020 10:16:24 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxY2sic80/goR3zxUSVgV4FlXanIl5U4socnn0EQF0P5MuAC7uL/od8xuTsvRegHSYa/pbt X-Received: by 2002:a50:ec8d:: with SMTP id e13mr8613219edr.143.1603905384446; Wed, 28 Oct 2020 10:16:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603905384; cv=none; d=google.com; s=arc-20160816; b=flrVkj+g478o2r9Bat924laXCzky5EBmbih87eIf8yWrf0IKTJQpB83ixA6js3BkMX H7w8UXxE/GUJ5VoFZNxdO4/Fc5kAZNAhopnHOwuk3lC0LOr06AmNNt79DPI3BJuoM92l wmGr3bHSJPo5FHmYOLQqqgcwRDgqKzMU60sxbtPDaMz7NOxOxm9e49iUfznAWFfUhLg5 cayAeTw4xca0/IfrkRhD0Flyh5Cq6tA+f7jkx5VzGD5kTbRgjVIqM6AUcrVADGPn5Jcr uyWwIQf4Yhe8zyAtim+4ZwLalcY4k1rXNwmTUJWs5b7rnyT0vtcfX2RLx2m+sQdmX/0c +f5g== 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=o7JEOxqo7YnwTZFW+7YMomH8tuQDu4i0alCqXZkrU5iMmFTVu6xGx6Acb3MbwrvHUk 0xLl+BN4d+JlTPVIhNupk2K7xo8S+f4swPNAnIr8W1NYPrvfcD/QgLLyxchx3sYxVOa5 WjEI1ub4HVpPhbOskQbRhkQIhxJsks6bIYvLZPFtvxf6aHksJQaLAgWoecQ/AkHpkLiU 84XtpoYxDaWRfkI0OVQ+uaMvTcswPO6tl9Z/7dTj4HBqjsjYesf1bG3lHUWWn9j3Y1GT Pa0101O8MRjUCiAIByjsu2+YbEv6gO1mJBYO8KKR3tuW59OxD5oTEqIO570HGp8aTE+s vDwg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=dNBh7YlC; 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 bm13si21671edb.281.2020.10.28.10.16.00; Wed, 28 Oct 2020 10:16:24 -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=dNBh7YlC; 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 S1820669AbgJ0RhK (ORCPT + 99 others); Tue, 27 Oct 2020 13:37:10 -0400 Received: from mail.kernel.org ([198.145.29.99]:34648 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757253AbgJ0Ofw (ORCPT ); Tue, 27 Oct 2020 10:35: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 517D6207BB; Tue, 27 Oct 2020 14:35:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1603809352; bh=/VwmD1Zgho6r0gxvEmXLjOl1yLHfntqI3FFJRejA3vA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=dNBh7YlCUS2amDorjBH16igDWWpTqw9dPGrsiKAAL3Q9XlJ8CF2+/gN0mpFIk5SYl imADpG7yEak9J2ClH0lEKm0zpzNnVyUCZpEV54pqziCkvvSAn6tsqHX4zgDnluRoGi ldH8PMMorSrpWauP/H+xVwByShzOOwiF1/KO0jnw= 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.4 148/408] cpufreq: armada-37xx: Add missing MODULE_DEVICE_TABLE Date: Tue, 27 Oct 2020 14:51:26 +0100 Message-Id: <20201027135501.961698330@linuxfoundation.org> X-Mailer: git-send-email 2.29.1 In-Reply-To: <20201027135455.027547757@linuxfoundation.org> References: <20201027135455.027547757@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