From patchwork Fri Apr 22 11:28:40 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 66442 Delivered-To: patch@linaro.org Received: by 10.140.93.198 with SMTP id d64csp664193qge; Fri, 22 Apr 2016 04:30:50 -0700 (PDT) X-Received: by 10.98.93.138 with SMTP id n10mr27680295pfj.43.1461324647233; Fri, 22 Apr 2016 04:30:47 -0700 (PDT) Return-Path: Received: from bombadil.infradead.org (bombadil.infradead.org. [2001:1868:205::9]) by mx.google.com with ESMTPS id u4si7287142par.185.2016.04.22.04.30.47 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 22 Apr 2016 04:30:47 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org designates 2001:1868:205::9 as permitted sender) client-ip=2001:1868:205::9; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org; spf=pass (google.com: best guess record for domain of linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org designates 2001:1868:205::9 as permitted sender) smtp.mailfrom=linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org; dmarc=fail (p=NONE dis=NONE) header.from=linaro.org Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1atZHJ-0004Q5-Qb; Fri, 22 Apr 2016 11:29:41 +0000 Received: from mail-pa0-x235.google.com ([2607:f8b0:400e:c03::235]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1atZHF-00044L-Fq for linux-arm-kernel@lists.infradead.org; Fri, 22 Apr 2016 11:29:38 +0000 Received: by mail-pa0-x235.google.com with SMTP id r5so35431301pag.1 for ; Fri, 22 Apr 2016 04:29:16 -0700 (PDT) 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 :in-reply-to:references; bh=TLogRWRa+0DVWgwBMu+DA0hzGW1FsKH5+7gk9REBmmY=; b=cOxAppVwksCc6Pw/LzHST20PjL3ZnWlM7gj97Ru+ZbJ3+u8QqwluIdArGfWSSZJHmf H+4yEuSlVyU771zcxmi4uxzHUeE3Bqdr6+HQhZCXqzzoJV15y/RNBVAMFKxY+AuhOEHw 30CTiMfTkEk+EaN3zOyJXn0PCsNb7/KojBhVw= 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:in-reply-to:references; bh=TLogRWRa+0DVWgwBMu+DA0hzGW1FsKH5+7gk9REBmmY=; b=N+BSMrFvIZM5C8BmiZMTBktb+H0/C8IIn+1A/hFJFpg5c0VqHkepcxpatCtFukgtZd u+ue2iJJdic2j7qROgiXXlNxfsANVKaAurrZwycUQYXq3YPHdhxsC8i+kO3VyvzBctNC FrZpe8i4RLS5WSjb/zdWzrtc2mgPWxCBJaxpiTFoRK46rY75K0YHpEc1rR+pBH7ddTQa 8H5cDyzh2ydLYhpknOPQLIKKhu4KYVOtS3A7Pam8KLiIeq5x2W3oCuCI3LWtPmIdAcTq 9+ek2yolb0Mn02GwLYV8WG1xQUNi+vopJUaat2ajqz1YEifu47CdCvlS4H8EgE7Z+SyM 6NDQ== X-Gm-Message-State: AOPr4FUrQx1Kjksh4iEH7xMNLQnC+7q/AS2EGvXioLgvMjQEJx6eXfzsKQusgUqbYpC8DyOc X-Received: by 10.66.235.129 with SMTP id um1mr27508288pac.17.1461324556366; Fri, 22 Apr 2016 04:29:16 -0700 (PDT) Received: from localhost ([122.167.26.250]) by smtp.gmail.com with ESMTPSA id 9sm7847634pfm.10.2016.04.22.04.29.15 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 22 Apr 2016 04:29:15 -0700 (PDT) From: Viresh Kumar To: Rafael Wysocki , Sebastian Hesselbarth , Viresh Kumar Subject: [PATCH V2 2/9] cpufreq: berlin: Use generic platdev driver Date: Fri, 22 Apr 2016 16:58:40 +0530 Message-Id: <64733ec5d702497b80c8f5a96baaa86aa5281efa.1461324267.git.viresh.kumar@linaro.org> X-Mailer: git-send-email 2.7.1.410.g6faf27b In-Reply-To: References: In-Reply-To: References: X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160422_042937_597032_7D5208BF X-CRM114-Status: GOOD ( 11.53 ) X-Spam-Score: -2.7 (--) X-Spam-Report: SpamAssassin version 3.4.0 on bombadil.infradead.org summary: Content analysis details: (-2.7 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [2607:f8b0:400e:c03:0:0:0:235 listed in] [list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linaro-kernel@lists.linaro.org, Arnd Bergmann , linux-pm@vger.kernel.org, Antoine Tenart , linux-kernel@vger.kernel.org, geert@linux-m68k.org, linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org The cpufreq-dt-platdev driver supports creation of cpufreq-dt platform device now, reuse that and remove similar code from platform code. Cc: Sebastian Hesselbarth Signed-off-by: Viresh Kumar Acked-by: Antoine Tenart Acked-by: Arnd Bergmann --- arch/arm/mach-berlin/berlin.c | 6 ------ drivers/cpufreq/cpufreq-dt-platdev.c | 2 ++ 2 files changed, 2 insertions(+), 6 deletions(-) -- 2.7.1.410.g6faf27b _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel diff --git a/arch/arm/mach-berlin/berlin.c b/arch/arm/mach-berlin/berlin.c index 25d73870ccca..ac181c6797ee 100644 --- a/arch/arm/mach-berlin/berlin.c +++ b/arch/arm/mach-berlin/berlin.c @@ -18,11 +18,6 @@ #include #include -static void __init berlin_init_late(void) -{ - platform_device_register_simple("cpufreq-dt", -1, NULL, 0); -} - static const char * const berlin_dt_compat[] = { "marvell,berlin", NULL, @@ -30,7 +25,6 @@ static const char * const berlin_dt_compat[] = { DT_MACHINE_START(BERLIN_DT, "Marvell Berlin") .dt_compat = berlin_dt_compat, - .init_late = berlin_init_late, /* * with DT probing for L2CCs, berlin_init_machine can be removed. * Note: 88DE3005 (Armada 1500-mini) uses pl310 l2cc diff --git a/drivers/cpufreq/cpufreq-dt-platdev.c b/drivers/cpufreq/cpufreq-dt-platdev.c index 00da8c8bee6c..3e1c8211c213 100644 --- a/drivers/cpufreq/cpufreq-dt-platdev.c +++ b/drivers/cpufreq/cpufreq-dt-platdev.c @@ -12,6 +12,8 @@ #include static const struct of_device_id machines[] __initconst = { + { .compatible = "marvell,berlin", }, + { .compatible = "samsung,exynos3250", }, { .compatible = "samsung,exynos4210", }, { .compatible = "samsung,exynos4212", },