From patchwork Fri Jan 22 08:40:26 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "pi-cheng.chen" X-Patchwork-Id: 60122 Delivered-To: patch@linaro.org Received: by 10.112.130.2 with SMTP id oa2csp510214lbb; Fri, 22 Jan 2016 00:41:05 -0800 (PST) X-Received: by 10.98.12.213 with SMTP id 82mr2624873pfm.116.1453452065745; Fri, 22 Jan 2016 00:41:05 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a90si8222641pfj.20.2016.01.22.00.41.05; Fri, 22 Jan 2016 00:41:05 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dkim=neutral (body hash did not verify) header.i=@linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752373AbcAVIlA (ORCPT + 6 others); Fri, 22 Jan 2016 03:41:00 -0500 Received: from mail-pf0-f180.google.com ([209.85.192.180]:34647 "EHLO mail-pf0-f180.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751833AbcAVIkz (ORCPT ); Fri, 22 Jan 2016 03:40:55 -0500 Received: by mail-pf0-f180.google.com with SMTP id q63so39722885pfb.1 for ; Fri, 22 Jan 2016 00:40:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=jYDHkaqcxeQwBS38uTgP37HXLvHYVzS/BYdx6hw3ulA=; b=j9+CsxoWve4FQ88jfqazc+Kc6y0pHIcqpKC/43d886Eoo1JhttTXAi3CTt9rnk3U2q uRfhp/nR52yEzH7vlGJi3REyj50BLpGpFx5Cw+RUkrIObZwmioFmPcx91G0DZI8hY46l u4u0HfzvKTvCfakBTHIrQvHzze7GPB7+9f2bU= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=jYDHkaqcxeQwBS38uTgP37HXLvHYVzS/BYdx6hw3ulA=; b=M8RbBFeaxiv/dt3J8UFzWUnvnyBFgR/5ucHA0Bz0TEAvLM8/FvB5hCZnp4tTUgU16m lhMsoxiXALd3hQ7I49ETnkgV3eB33A8PHHf8xIm0QIHuWHu4nTDOzXKDyyEfRcvbDuAF 7lXtrkP5bB4eOF2Lj5rgDC4cS04w+74a8G8Hr07PoFCnG57/4ZW9MVkNP/fYe29kfpAs FFg3a2/4FhW/TLrZNvIinJCBxFSdJJuSSwLqpgT++btQOBLa03d7mfFjtGSzBEoVkZW+ SeovO4W6+nILSXUG/Y6JgnDOJyqiyd5V4iUmDzQH3csnyN1g6ijxP/lLatEhCuSuVbK6 aGpg== X-Gm-Message-State: AG10YOTANW2rCBxxF9z0XK0C7jrevI2zC40VDjd1JX2nIutBPH2lojxos2/Z1HCRDDOuTwj5 X-Received: by 10.98.18.145 with SMTP id 17mr2642374pfs.103.1453452054487; Fri, 22 Jan 2016 00:40:54 -0800 (PST) Received: from localhost.localdomain ([124.219.30.17]) by smtp.googlemail.com with ESMTPSA id ty5sm7761114pac.48.2016.01.22.00.40.42 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 22 Jan 2016 00:40:53 -0800 (PST) From: Pi-Cheng Chen To: Nishanth Menon , Eduardo Valentin , Viresh Kumar , Rob Herring , Sascha Hauer Cc: Kevin Hilman , Matthias Brugger , linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-pm@vger.kernel.org, devicetree@vger.kernel.org Subject: [RFC PATCH 2/5] cpufreq: mt8173: Remove platform device registration code Date: Fri, 22 Jan 2016 16:40:26 +0800 Message-Id: <1453452029-20843-3-git-send-email-pi-cheng.chen@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1453452029-20843-1-git-send-email-pi-cheng.chen@linaro.org> References: <1453452029-20843-1-git-send-email-pi-cheng.chen@linaro.org> Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org For MT8173 platform requirement, to make SVS (Smart Voltage Scaling) work correctly, the initialization of SVS engine should be later then thermal controller and prior to cpufreq driver. Remove the platform device registration code of mt8173-cpufreq and it will be later added in SVS driver code after SVS initialization done to ensure the platform specific initialization flow. Signed-off-by: Pi-Cheng Chen --- drivers/cpufreq/mt8173-cpufreq.c | 13 ------------- 1 file changed, 13 deletions(-) -- 1.9.1 -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/drivers/cpufreq/mt8173-cpufreq.c b/drivers/cpufreq/mt8173-cpufreq.c index 1efba34..1ede917 100644 --- a/drivers/cpufreq/mt8173-cpufreq.c +++ b/drivers/cpufreq/mt8173-cpufreq.c @@ -577,7 +577,6 @@ static struct platform_driver mt8173_cpufreq_platdrv = { static int mt8173_cpufreq_driver_init(void) { - struct platform_device *pdev; int err; if (!of_machine_is_compatible("mediatek,mt8173")) @@ -587,18 +586,6 @@ static int mt8173_cpufreq_driver_init(void) if (err) return err; - /* - * Since there's no place to hold device registration code and no - * device tree based way to match cpufreq driver yet, both the driver - * and the device registration codes are put here to handle defer - * probing. - */ - pdev = platform_device_register_simple("mt8173-cpufreq", -1, NULL, 0); - if (IS_ERR(pdev)) { - pr_err("failed to register mtk-cpufreq platform device\n"); - return PTR_ERR(pdev); - } - return 0; } device_initcall(mt8173_cpufreq_driver_init);