Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp9038461pxu; Mon, 28 Dec 2020 05:07:41 -0800 (PST) X-Google-Smtp-Source: ABdhPJxKwYDqF11UtVmGKaKHYMwKU+Ijj1wh4LcH1UXtL8RmR0mj0IBWWE4d1XSJH9zuh1q8QO4G X-Received: by 2002:a05:6402:404:: with SMTP id q4mr43156692edv.295.1609160860800; Mon, 28 Dec 2020 05:07:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1609160860; cv=none; d=google.com; s=arc-20160816; b=mEWZ9fK8CYnOjcK/MSGx37oIWD3IlMe96JJex2xrekAJVbWg/Yv3GxJQFd4CaKgD40 kfIN7/77boIHuhw4ZJNw2HlGnycXZFVV+dhKbvxsEO/KsLRfTB692ebhpA5tObTqNrc6 UpL13phmQW0lsFHzLUzzXLUoMXwocHAovDe+sxmXNCqMuLzapsEug4EFhj8NrxxUmx/Y LT6LKb35E9phJUADUbjPVTnuAZ3JZ4CMpjv8SLjRZGb3lpWl2roTduY1AfrYWnBzN+Rn /WRMVTdiK6eo9alFh+c4KOv0JxOINLFuOXDlPB/xzWAZvqB7pz7LldO8LWWnctFX/va1 04PA== 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=RC20lZznIJ2EwHg/k+xxsOtrNvZ2BWDblH6H8BATm3I=; b=X65xLQcHAbP5BT8JS+LQpzPjBfMcM64/hCR3B2xL740MW67g4zLWDkot6Nltc0Knax P4vCNrgd9WZU0Zqrqyoil61jH/pK0fS807fzWQT1FH04bO0LJR6CvlJlks6EhtUK2+RZ FJT1zGOfhBNV307A5fNzb2QA0hrhnDAdqOd/+LD67Cj4kbDEJHhflgUgH1O6wk5QTlDD RiJenttFT79QFQlqzDzlIlURYGJTA4rlARzz4lSbmmcoEAzcb+B83wvEQwpA7753YGVR kK5lM/IUkCWon9NPIyVOKKjPJMnixJ08ab+qzYxnVlctA3fcmAu+QP3IgOBvsSkKTGYC jW4A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="tZOV5If/"; 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 j24si18373265ejs.60.2020.12.28.05.07.17; Mon, 28 Dec 2020 05:07:40 -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="tZOV5If/"; 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 S1730373AbgL1NEJ (ORCPT + 99 others); Mon, 28 Dec 2020 08:04:09 -0500 Received: from mail.kernel.org ([198.145.29.99]:59802 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730258AbgL1NDj (ORCPT ); Mon, 28 Dec 2020 08:03:39 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 4ED9D2242A; Mon, 28 Dec 2020 13:02:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1609160578; bh=dHrVGVhdnb0DIE9G+GObwxmVoak5xIrJdDOIlchM/o4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=tZOV5If/kA08y4+h8yZeLgpVN9SuWt5ovqR2gDK0UT8v7EYFrbnhKkevLdxB0/wPy bhIlOZADlU/GbM9NjpiRjzuuxoSAoB2KEoQuqb94T3uoFlSFeX37lnvjk/6H6WJ9GG 7p3elvxJnw2fYn/va6v4GHPkTupXYfOVVfkTuMiw= 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 4.9 099/175] cpufreq: st: Add missing MODULE_DEVICE_TABLE Date: Mon, 28 Dec 2020 13:49:12 +0100 Message-Id: <20201228124858.043587571@linuxfoundation.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201228124853.216621466@linuxfoundation.org> References: <20201228124853.216621466@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 2cb3346e82d35..c7f0b2df15cdd 100644 --- a/drivers/cpufreq/sti-cpufreq.c +++ b/drivers/cpufreq/sti-cpufreq.c @@ -294,6 +294,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