Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1287015

Re: [PATCH v5 08/11] ARM: STi: Register CPUFreq device

Path csiph.com!news.mixmin.net!weretis.net!feeder1.news.weretis.net!newsfeed.CARNet.hr!news.spin.it!bofh.it!news.nic.it!robomod
From Viresh Kumar <viresh.kumar@linaro.org>
Newsgroups linux.kernel
Subject Re: [PATCH v5 08/11] ARM: STi: Register CPUFreq device
Date Wed, 09 Dec 2015 03:40:01 +0100
Message-ID <qDCPD-2c5-1@gated-at.bofh.it> (permalink)
References <qDrAR-3yq-3@gated-at.bofh.it> <qDrAS-3yq-23@gated-at.bofh.it>
X-Original-To Lee Jones <lee.jones@linaro.org>
Dkim-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro-org.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; bh=SgfOlek5ood/TKMVO3W3y1SEPwXeLZ1O8uNj06eKE9I=; b=UgljmXiiDeCm+yJpa/IhbHxNwxbbY113BQWsWDboc/zJ0dQbc/OMHxu4PLHfvSZWnH AgYveaX5qp9Hd1UlOKjQ5TLmMWB658YHTqTUQv7H4RybYnbXJSpso73b2BWGCrEJnrmO IvCvyz1tYtw7byDzWIxQNCvat657+TspmPK6bgG1yTHs6J01+vGOoAIN/38887iOXnSs mkV+3ERnWpFtG2YBxF+2bx1dXAzV2A2PpYg8f5pVRkwvLyotv07ZBtGgFYWDZbHq7qG6 0JBNSmgthjSSqGyfUAkOo4S/TvpoEb6f+AdlcHstZqkWISzBel56d4Ht2w+t4+51fYZw KnIw==
X-Google-Dkim-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-type:content-disposition:in-reply-to :user-agent; bh=SgfOlek5ood/TKMVO3W3y1SEPwXeLZ1O8uNj06eKE9I=; b=BOJbQq91JRBAihsiS0B7+dE8IAgZk9uDyELtkUUgCwvJH12mthS5Ub5t7veCHiQQ0/ KoG25bmGVFEKKmUg6q/sxNZHK5Kk+4QcWnSqoqRaJIrPisepL34ecYZxMM/Cff5BQ/z8 9x+kNqwYO7JD5w2efjmcZu4ZOlFFVJwCBQ3k3hsT7lacltitws2nD/hdRJJmkusfGo1D Surk0yfMJ/04QsyymNN1Aflxh0ArvM0ofzaLlwbDXXnZesAEPh74YXTeYJVBpjEWcc6K yAdToqh9cMSfqamZ5zaU3YeQCDj0FYRdi/f2/H/YhqFXw9uttHq3zO7n2mCeVeV5V2gn Wl7g==
X-Gm-Message-State ALoCoQkaXVPfR2+7FkvW8LBNdldtbjUQD11i54fj+GtV80rYLs2xX1a8WqIsoRjzYfaqD7h8XMUeDteYP0bUjt+14dXnrdZjwQ==
X-Received by 10.66.62.137 with SMTP id y9mr4658256par.123.1449628789716; Tue, 08 Dec 2015 18:39:49 -0800 (PST)
MIME-Version 1.0
Content-Type text/plain; charset=us-ascii
Content-Disposition inline
User-Agent Mutt/1.5.21 (2010-09-15)
Sender robomod@news.nic.it
List-ID <linux-kernel.vger.kernel.org>
X-Mailing-List linux-kernel@vger.kernel.org
Approved robomod@news.nic.it
Lines 37
Organization linux.* mail to news gateway
X-Original-Cc linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, kernel@stlinux.com, maxime.coquelin@st.com, linux-pm@vger.kernel.org, rjw@rjwysocki.net, devicetree@vger.kernel.org, ajitpal.singh@st.com
X-Original-Date Wed, 9 Dec 2015 08:09:46 +0530
X-Original-Message-ID <20151209023946.GU3692@ubuntu>
X-Original-References <1449585124-15596-1-git-send-email-lee.jones@linaro.org> <1449585124-15596-9-git-send-email-lee.jones@linaro.org>
X-Original-Sender linux-kernel-owner@vger.kernel.org
Xref csiph.com linux.kernel:1287015

Show key headers only | View raw


On 08-12-15, 14:32, Lee Jones wrote:
> +/**
> + * SMP Operations
> + */

Why do you need a documentation style comment here?

>  static void write_pen_release(int val)
>  {
>  	pen_release = val;
> @@ -161,3 +166,11 @@ struct smp_operations __initdata sti_smp_ops = {
>  	.smp_secondary_init	= sti_secondary_init,
>  	.smp_boot_secondary	= sti_boot_secondary,
>  };
> +
> +/**
> + * CPUFreq Registration
> + */

Here too.

> +void init_cpufreq(void)
> +{
> +	platform_device_register_simple("sti-cpufreq", -1, NULL, 0);
> +}

I don't think you need this, as you can do all the stuff you want from
the module_init() function in the driver. You just have to make sure
that your driver is only compilable and workable on the right STi platform.

-- 
viresh
--
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/

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH v5 08/11] ARM: STi: Register CPUFreq device Lee Jones <lee.jones@linaro.org> - 2015-12-08 15:40 +0100
  Re: [PATCH v5 08/11] ARM: STi: Register CPUFreq device Viresh Kumar <viresh.kumar@linaro.org> - 2015-12-09 03:40 +0100
  Re: [PATCH v5 08/11] ARM: STi: Register CPUFreq device Viresh Kumar <viresh.kumar@linaro.org> - 2015-12-09 10:20 +0100
  Re: [PATCH v5 08/11] ARM: STi: Register CPUFreq device Arnd Bergmann <arnd@arndb.de> - 2015-12-09 10:20 +0100
    Re: [PATCH v5 08/11] ARM: STi: Register CPUFreq device Lee Jones <lee.jones@linaro.org> - 2015-12-09 12:30 +0100

csiph-web