Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp9086791pxu; Mon, 28 Dec 2020 06:18:39 -0800 (PST) X-Google-Smtp-Source: ABdhPJyGrZ7Zy2eh/gOmz84dluwm5O5HpJbQCGLFXeO4If2uApMH+IAaJeVEyoIB4DcoD6Xoy5ps X-Received: by 2002:a05:6402:2377:: with SMTP id a23mr41971803eda.34.1609165119652; Mon, 28 Dec 2020 06:18:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1609165119; cv=none; d=google.com; s=arc-20160816; b=Y+mfDD0O4qG7bOGaJwBJSp/VGhyXaEU+pB23j3TnVbQq98xrpl3fSuiV1buSKgMitA GXViNGFhtSkAGZ/nojmAECKqZMfWcQMMMZ8X0wQG5TSon6LCgV3pw0a15rFqq6R+rEY5 z/TKR9VTILIb7z6wt4lO50No0UyY2BVugLV+SV1ciNdHLqi3STfsUbVceu9Ew9aZelHa cqP4aXhcMsm1XEEfrkueuZcwF/nzhzsu6EIiO1IWkp3Nva1ghfgeY8N6ceuCQXMmWR+9 y+Q3zV1sF5E9P2kBCFMw4UjuDmxMMHNTkxaQDS6pKL4A8t0g+b6ZF42xZMn41kDO7xVK GmpA== 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=CwTKNxXS+MT55+8Vnozsyaob+Tc1q5Ajkg2D3M7m0Wg=; b=fWz6bx3SJGTDhnwwUyqepcqFMxRXSptsNHli9GcZMWYDbVOdDUpG1sLN/cf7iCumOQ uBbmSVF0NizWJ+C8TU7Ui/xqZtoxdbNw96kPsmGyPyZsos+8qk+/gbcnWuPhYSpCdMPM MzAB0qvIbWa7gzIFfPZme2jKK/I1h3q77S6bA+uIzIlL82xiD5YnVefJU+mBbVuM40zz 5zPL6pjhRNr1SHH0FX27F4IJCOvgz0c7qD0leWonVuqcR+A7o3US88Hb+jRInMMDeuAN DqQSPRPl7ItGf0p2uO4JDnG6QPvmuRC8oDjJqb3OIBKBJgl/lKc/nKFR0NTJkmzW9C0/ Yjxg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="sbh/KWow"; 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=pass (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 z6si16491403ejr.643.2020.12.28.06.18.17; Mon, 28 Dec 2020 06:18:39 -0800 (PST) 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=@linuxfoundation.org header.s=korg header.b="sbh/KWow"; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2440583AbgL1OPH (ORCPT + 99 others); Mon, 28 Dec 2020 09:15:07 -0500 Received: from mail.kernel.org ([198.145.29.99]:49964 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2440574AbgL1OPE (ORCPT ); Mon, 28 Dec 2020 09:15:04 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id F1633207AB; Mon, 28 Dec 2020 14:14:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1609164864; bh=gTLGYdL02XKs0yupekkeEsMyPVc7aRlL9Kj0z/zmwxA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=sbh/KWow4Z5Ih+bY4kcm0Jd9qpUNe71FPr22TPGdf7zOTjM7JzLeXjuXNDBxgK8W2 KYtLl83rm4ufJ44y9jA+XNAnMqggisQztowX/xk59BbhBLx/vu5WpmttrQsuKrjj4H S3+bhGpgikrzJ8z9b9VX85c2GAOm4xTNZmA2VQYI= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, =?UTF-8?q?Pali=20Roh=C3=A1r?= , Viresh Kumar , Sasha Levin Subject: [PATCH 5.10 327/717] cpufreq: st: Add missing MODULE_DEVICE_TABLE Date: Mon, 28 Dec 2020 13:45:25 +0100 Message-Id: <20201228125036.686052143@linuxfoundation.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201228125020.963311703@linuxfoundation.org> References: <20201228125020.963311703@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 183747ab52654eb406fc6b5bfb40806b75d31811 ] This patch adds missing MODULE_DEVICE_TABLE definition which generates correct modalias for automatic loading of this cpufreq driver when it is compiled as an external module. Signed-off-by: Pali Rohár Fixes: ab0ea257fc58d ("cpufreq: st: Provide runtime initialised driver for ST's platforms") Signed-off-by: Viresh Kumar Signed-off-by: Sasha Levin --- drivers/cpufreq/sti-cpufreq.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/drivers/cpufreq/sti-cpufreq.c b/drivers/cpufreq/sti-cpufreq.c index 4ac6fb23792a0..c40d3d7d4ea43 100644 --- a/drivers/cpufreq/sti-cpufreq.c +++ b/drivers/cpufreq/sti-cpufreq.c @@ -292,6 +292,13 @@ register_cpufreq_dt: } module_init(sti_cpufreq_init); +static const struct of_device_id __maybe_unused sti_cpufreq_of_match[] = { + { .compatible = "st,stih407" }, + { .compatible = "st,stih410" }, + { }, +}; +MODULE_DEVICE_TABLE(of, sti_cpufreq_of_match); + MODULE_DESCRIPTION("STMicroelectronics CPUFreq/OPP driver"); MODULE_AUTHOR("Ajitpal Singh "); MODULE_AUTHOR("Lee Jones "); -- 2.27.0