linux-pm.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Zhang Rui <rui.zhang@intel.com>
To: Sachin Kamat <sachin.kamat@linaro.org>
Cc: linux-pm@vger.kernel.org, patches@linaro.org
Subject: Re: [PATCH 1/1] thermal: exynos: Use of_match_ptr() macro
Date: Fri, 04 Jan 2013 15:36:58 +0800	[thread overview]
Message-ID: <1357285018.2152.5.camel@rzhang1-mobl4> (raw)
In-Reply-To: <1355307864-22194-1-git-send-email-sachin.kamat@linaro.org>

On Wed, 2012-12-12 at 15:54 +0530, Sachin Kamat wrote:
> This eliminates having an #ifdef returning NULL for the case
> when OF is disabled.
> 
> Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>

applied to thermal-next.

thanks,
rui

> ---
>  drivers/thermal/exynos_thermal.c |    4 +---
>  1 files changed, 1 insertions(+), 3 deletions(-)
> 
> diff --git a/drivers/thermal/exynos_thermal.c b/drivers/thermal/exynos_thermal.c
> index 7772d16..3f6a54a 100644
> --- a/drivers/thermal/exynos_thermal.c
> +++ b/drivers/thermal/exynos_thermal.c
> @@ -800,8 +800,6 @@ static const struct of_device_id exynos_tmu_match[] = {
>  	{},
>  };
>  MODULE_DEVICE_TABLE(of, exynos_tmu_match);
> -#else
> -#define  exynos_tmu_match NULL
>  #endif
>  
>  static struct platform_device_id exynos_tmu_driver_ids[] = {
> @@ -982,7 +980,7 @@ static struct platform_driver exynos_tmu_driver = {
>  		.name   = "exynos-tmu",
>  		.owner  = THIS_MODULE,
>  		.pm     = EXYNOS_TMU_PM,
> -		.of_match_table = exynos_tmu_match,
> +		.of_match_table = of_match_ptr(exynos_tmu_match),
>  	},
>  	.probe = exynos_tmu_probe,
>  	.remove	= __devexit_p(exynos_tmu_remove),



      reply	other threads:[~2013-01-04  7:37 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-12-12 10:24 [PATCH 1/1] thermal: exynos: Use of_match_ptr() macro Sachin Kamat
2013-01-04  7:36 ` Zhang Rui [this message]

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=1357285018.2152.5.camel@rzhang1-mobl4 \
    --to=rui.zhang@intel.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).