From: Zhang Rui <rui.zhang@intel.com>
To: Sachin Kamat <sachin.kamat@linaro.org>
Cc: linux-pm@vger.kernel.org, hongbo.zhang@linaro.org,
patches@linaro.org, Hongbo Zhang <hongbo.zhang@stericsson.com>
Subject: Re: [PATCH 2/2] thermal: db8500: Use of_match_ptr() macro in db8500_cpufreq_cooling.c
Date: Fri, 04 Jan 2013 15:36:14 +0800 [thread overview]
Message-ID: <1357284974.2152.3.camel@rzhang1-mobl4> (raw)
In-Reply-To: <1355907059-28720-2-git-send-email-sachin.kamat@linaro.org>
On Wed, 2012-12-19 at 14:20 +0530, Sachin Kamat wrote:
> This eliminates having an #ifdef returning NULL for the case
> when OF is disabled.
>
> Cc: Hongbo Zhang <hongbo.zhang@stericsson.com>
> Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
applied to thermal-next.
thanks,
rui
> ---
> Compile tested on linux-next.
> ---
> drivers/thermal/db8500_cpufreq_cooling.c | 5 ++---
> 1 files changed, 2 insertions(+), 3 deletions(-)
>
> diff --git a/drivers/thermal/db8500_cpufreq_cooling.c b/drivers/thermal/db8500_cpufreq_cooling.c
> index 4cf8e72..2141985 100644
> --- a/drivers/thermal/db8500_cpufreq_cooling.c
> +++ b/drivers/thermal/db8500_cpufreq_cooling.c
> @@ -21,6 +21,7 @@
> #include <linux/cpufreq.h>
> #include <linux/err.h>
> #include <linux/module.h>
> +#include <linux/of.h>
> #include <linux/platform_device.h>
> #include <linux/slab.h>
>
> @@ -73,15 +74,13 @@ static const struct of_device_id db8500_cpufreq_cooling_match[] = {
> { .compatible = "stericsson,db8500-cpufreq-cooling" },
> {},
> };
> -#else
> -#define db8500_cpufreq_cooling_match NULL
> #endif
>
> static struct platform_driver db8500_cpufreq_cooling_driver = {
> .driver = {
> .owner = THIS_MODULE,
> .name = "db8500-cpufreq-cooling",
> - .of_match_table = db8500_cpufreq_cooling_match,
> + .of_match_table = of_match_ptr(db8500_cpufreq_cooling_match),
> },
> .probe = db8500_cpufreq_cooling_probe,
> .suspend = db8500_cpufreq_cooling_suspend,
next prev parent reply other threads:[~2013-01-04 7:36 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-12-19 8:50 [PATCH 1/2] thermal: db8500: Use of_match_ptr() macro in db8500_thermal.c Sachin Kamat
2012-12-19 8:50 ` [PATCH 2/2] thermal: db8500: Use of_match_ptr() macro in db8500_cpufreq_cooling.c Sachin Kamat
2013-01-03 9:07 ` Hongbo Zhang
2013-01-04 7:36 ` Zhang Rui [this message]
2013-01-03 9:05 ` [PATCH 1/2] thermal: db8500: Use of_match_ptr() macro in db8500_thermal.c Hongbo Zhang
2013-01-04 7:36 ` Zhang Rui
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1357284974.2152.3.camel@rzhang1-mobl4 \
--to=rui.zhang@intel.com \
--cc=hongbo.zhang@linaro.org \
--cc=hongbo.zhang@stericsson.com \
--cc=linux-pm@vger.kernel.org \
--cc=patches@linaro.org \
--cc=sachin.kamat@linaro.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).