Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751611AbdISO6N (ORCPT ); Tue, 19 Sep 2017 10:58:13 -0400 Received: from lelnx193.ext.ti.com ([198.47.27.77]:18973 "EHLO lelnx193.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750862AbdISO6L (ORCPT ); Tue, 19 Sep 2017 10:58:11 -0400 From: Dave Gerlach To: Viresh Kumar , "Rafael J . Wysocki" CC: , , , , Tony Lindgren , Dave Gerlach Subject: [PATCH] cpufreq: dt-platdev: Add devices covered by ti-cpufreq to blacklist Date: Tue, 19 Sep 2017 09:57:30 -0500 Message-ID: <20170919145730.8981-1-d-gerlach@ti.com> X-Mailer: git-send-email 2.13.4 MIME-Version: 1.0 Content-Type: text/plain X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1465 Lines: 36 Commit edeec420de24 ("cpufreq: dt-platdev: Automatically create cpufreq device with OPP v2") causes a cpufreq-dt platform device to be automatically created for any platform with an OPP v2 node defined. However, ti-cpufreq registers the cpufreq-dt platdev at the end of probe in order to ensure the ti-cpufreq driver probes first and provides the necessary opp-supported-hw for cpufreq-dt. With this new patch now a dupluicate cpufreq-dt is created, which we do not want. To avoid this, add the platforms handled by ti-cpufreq to the blacklist provided in the aforementioned commit to allow ti-cpufreq to continue creating the cpufreq-dt platdev. This applies to am335x, am437x, dra7xx, and am57xx. Fixes: edeec420de24 ("cpufreq: dt-cpufreq: platdev Automatically create device with OPP v2") Signed-off-by: Dave Gerlach --- drivers/cpufreq/cpufreq-dt-platdev.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/cpufreq/cpufreq-dt-platdev.c b/drivers/cpufreq/cpufreq-dt-platdev.c index a020da7940d6..c6f554ba9bb3 100644 --- a/drivers/cpufreq/cpufreq-dt-platdev.c +++ b/drivers/cpufreq/cpufreq-dt-platdev.c @@ -106,6 +106,10 @@ static const struct of_device_id whitelist[] __initconst = { * platforms using "operating-points-v2" property. */ static const struct of_device_id blacklist[] __initconst = { + { .compatible = "ti,am33xx", }, + { .compatible = "ti,am43", }, + { .compatible = "ti,dra7", }, + { } }; -- 2.13.4