Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755232AbbDTS2x (ORCPT ); Mon, 20 Apr 2015 14:28:53 -0400 Received: from lb1-smtp-cloud2.xs4all.net ([194.109.24.21]:54315 "EHLO lb1-smtp-cloud2.xs4all.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755010AbbDTS2n (ORCPT ); Mon, 20 Apr 2015 14:28:43 -0400 Message-ID: <1429554517.14597.38.camel@x220> Subject: Re: [PATCH 1/2] cpufreq: mediatek: Add MT8173 cpufreq driver From: Paul Bolle To: "pi-cheng.chen" Cc: Viresh Kumar , Mike Turquette , Matthias Brugger , "Joe.C" , Eddie Huang , Howard Chen , fan.chen@mediatek.com, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, linaro-kernel@lists.linaro.org, linux-mediatek@lists.infradead.org Date: Mon, 20 Apr 2015 20:28:37 +0200 In-Reply-To: <1429522047-16675-2-git-send-email-pi-cheng.chen@linaro.org> References: <1429522047-16675-1-git-send-email-pi-cheng.chen@linaro.org> <1429522047-16675-2-git-send-email-pi-cheng.chen@linaro.org> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.10.4 (3.10.4-4.fc20) Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1387 Lines: 48 On Mon, 2015-04-20 at 17:27 +0800, pi-cheng.chen wrote: > --- a/drivers/cpufreq/Kconfig.arm > +++ b/drivers/cpufreq/Kconfig.arm > +config ARM_MT8173_CPUFREQ > + bool "Mediatek MT8173 CPUFreq support" > + depends on ARCH_MEDIATEK && REGULATOR > + help > + This adds the CPUFreq driver support for Mediatek MT8173 SoC. > --- a/drivers/cpufreq/Makefile > +++ b/drivers/cpufreq/Makefile > +obj-$(CONFIG_ARM_MT8173_CPUFREQ) += mt8173-cpufreq.o ARM_MT8173_CPUFREQ is a bool symbol, so mt8173-cpufreq.o will never be part of a module. (If that's incorrect you can stop reading here.) > --- /dev/null > +++ b/drivers/cpufreq/mt8173-cpufreq.c > +#include I guess this include is not needed. And, for what it's worth, make ARCH=arm CROSS_COMPILE=arm-linux-gnu- drivers/cpufreq/mt8173-cpufreq.o compiles silently even if it's dropped. > +module_init(mt8173_cpufreq_driver_init); According to include/linux/init.h, for built-in only code, this is equivalent to device_initcall([...]). And two runs of make ARCH=arm CROSS_COMPILE=arm-linux-gnu- drivers/cpufreq/mt8173-cpufreq.i confirm that. Thanks, Paul Bolle -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/