From patchwork Mon Sep 7 13:27:16 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Pali_Roh=C3=A1r?= X-Patchwork-Id: 11761023 X-Patchwork-Delegate: viresh.linux@gmail.com Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 2C89B112E for ; Mon, 7 Sep 2020 13:28:52 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 13FF7215A4 for ; Mon, 7 Sep 2020 13:28:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1599485332; bh=zduFED1gZ/Fbzt3bmZjWW745p5Gw8g0LTixr2qTH6j0=; h=From:To:Cc:Subject:Date:List-ID:From; b=nJOYk9AofVY+9jUynt0LdncVvBtw9FzFSPucxlvSaw+Y44beGtwEUKOt35c7vANnL YP8CiWpKYYxGkSuBWsqf+nP0+0QRV+cPfQWin8gm55lA4MYrzv55ClaIpw+CFbeqxL uRV7xkarvQ8LgQEt5cfBpFukLAsJUkYbur4z9Nuc= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729506AbgIGN2p (ORCPT ); Mon, 7 Sep 2020 09:28:45 -0400 Received: from mail.kernel.org ([198.145.29.99]:33100 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729596AbgIGN2R (ORCPT ); Mon, 7 Sep 2020 09:28:17 -0400 Received: from pali.im (pali.im [31.31.79.79]) (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 5079221481; Mon, 7 Sep 2020 13:27:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1599485245; bh=zduFED1gZ/Fbzt3bmZjWW745p5Gw8g0LTixr2qTH6j0=; h=From:To:Cc:Subject:Date:From; b=W7w2/HJnEneckbuZBV8qdPGq1ZRMfgpRBjAW+AIF/Im1UxWxiRgYfGn4hmFxSmlDI Wl2kjguXnaWzvzfv5Mp3SQw99es+ontfMDoZxzQAp3pPeqhU293tbFA4mXIDBFNTj8 A3hRdXeg02UAXMc9c/5K+L1Lit0tXq+cdkG3vPuA= Received: by pali.im (Postfix) id C2321814; Mon, 7 Sep 2020 15:27:22 +0200 (CEST) From: =?utf-8?q?Pali_Roh=C3=A1r?= To: Jason Cooper , Andrew Lunn , Gregory Clement , Sebastian Hesselbarth , "Rafael J. Wysocki" , Viresh Kumar Cc: linux-arm-kernel@lists.infradead.org, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] cpufreq: armada-37xx: Add missing MODULE_DEVICE_TABLE Date: Mon, 7 Sep 2020 15:27:16 +0200 Message-Id: <20200907132716.6379-1-pali@kernel.org> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org 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. Signed-off-by: Pali Rohár Fixes: 92ce45fb875d7 ("cpufreq: Add DVFS support for Armada 37xx") Reviewed-by: Andrew Lunn --- 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 df1c941260d1..46f33c3a7316 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 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");