All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Rafael J. Wysocki" <rjw@rjwysocki.net>
To: Ulf Hansson <ulf.hansson@linaro.org>
Cc: linux-acpi@vger.kernel.org, linux-pm@vger.kernel.org,
	Len Brown <lenb@kernel.org>, Pavel Machek <pavel@ucw.cz>
Subject: Re: [PATCH] PM / ACPI: Removed unused function
Date: Tue, 10 Oct 2017 18:55:12 +0200	[thread overview]
Message-ID: <3567036.iJx6k4I4BV@aspire.rjw.lan> (raw)
In-Reply-To: <1507273714-26394-1-git-send-email-ulf.hansson@linaro.org>

On Friday, October 6, 2017 9:08:34 AM CEST Ulf Hansson wrote:
> acpi_dev_pm_get_node() isn't used or implemented, let's remove it.
> 
> Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
> ---
>  include/linux/acpi.h | 5 -----
>  1 file changed, 5 deletions(-)
> 
> diff --git a/include/linux/acpi.h b/include/linux/acpi.h
> index 502af53..3b89b4f 100644
> --- a/include/linux/acpi.h
> +++ b/include/linux/acpi.h
> @@ -868,17 +868,12 @@ int acpi_dev_runtime_suspend(struct device *dev);
>  int acpi_dev_runtime_resume(struct device *dev);
>  int acpi_subsys_runtime_suspend(struct device *dev);
>  int acpi_subsys_runtime_resume(struct device *dev);
> -struct acpi_device *acpi_dev_pm_get_node(struct device *dev);
>  int acpi_dev_pm_attach(struct device *dev, bool power_on);
>  #else
>  static inline int acpi_dev_runtime_suspend(struct device *dev) { return 0; }
>  static inline int acpi_dev_runtime_resume(struct device *dev) { return 0; }
>  static inline int acpi_subsys_runtime_suspend(struct device *dev) { return 0; }
>  static inline int acpi_subsys_runtime_resume(struct device *dev) { return 0; }
> -static inline struct acpi_device *acpi_dev_pm_get_node(struct device *dev)
> -{
> -	return NULL;
> -}
>  static inline int acpi_dev_pm_attach(struct device *dev, bool power_on)
>  {
>  	return -ENODEV;
> 

Applied, thanks!

      parent reply	other threads:[~2017-10-10 16:55 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-10-06  7:08 [PATCH] PM / ACPI: Removed unused function Ulf Hansson
2017-10-06 12:12 ` Pavel Machek
2017-10-06 12:14   ` Pavel Machek
2017-10-07  6:44     ` Ulf Hansson
2017-10-10 16:55 ` Rafael J. Wysocki [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=3567036.iJx6k4I4BV@aspire.rjw.lan \
    --to=rjw@rjwysocki.net \
    --cc=lenb@kernel.org \
    --cc=linux-acpi@vger.kernel.org \
    --cc=linux-pm@vger.kernel.org \
    --cc=pavel@ucw.cz \
    --cc=ulf.hansson@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.