mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] pm: fix comments to match runtime callback code
@ 2010-11-19 15:48 Aaro Koskinen
  2010-11-26 22:04 ` Rafael J. Wysocki
  0 siblings, 1 reply; 2+ messages in thread
From: Aaro Koskinen @ 2010-11-19 15:48 UTC (permalink / raw)
  To: linux-pm, rjw, linux-kernel

Commit 05aa55dddb9ee4045c320661068bea78dad6a6e5 changed routines to
succeed if the driver handler is not defined. Comments were not updated.

Signed-off-by: Aaro Koskinen <aaro.koskinen@nokia.com>
---
 drivers/base/power/generic_ops.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/base/power/generic_ops.c b/drivers/base/power/generic_ops.c
index 81f2c84..3d2c350 100644
--- a/drivers/base/power/generic_ops.c
+++ b/drivers/base/power/generic_ops.c
@@ -39,7 +39,7 @@ EXPORT_SYMBOL_GPL(pm_generic_runtime_idle);
  *
  * If PM operations are defined for the @dev's driver and they include
  * ->runtime_suspend(), execute it and return its error code.  Otherwise,
- * return -EINVAL.
+ * return 0.
  */
 int pm_generic_runtime_suspend(struct device *dev)
 {
@@ -58,7 +58,7 @@ EXPORT_SYMBOL_GPL(pm_generic_runtime_suspend);
  *
  * If PM operations are defined for the @dev's driver and they include
  * ->runtime_resume(), execute it and return its error code.  Otherwise,
- * return -EINVAL.
+ * return 0.
  */
 int pm_generic_runtime_resume(struct device *dev)
 {
-- 
1.5.6.5


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] pm: fix comments to match runtime callback code
  2010-11-19 15:48 [PATCH] pm: fix comments to match runtime callback code Aaro Koskinen
@ 2010-11-26 22:04 ` Rafael J. Wysocki
  0 siblings, 0 replies; 2+ messages in thread
From: Rafael J. Wysocki @ 2010-11-26 22:04 UTC (permalink / raw)
  To: Aaro Koskinen; +Cc: linux-pm, linux-kernel

On Friday, November 19, 2010, Aaro Koskinen wrote:
> Commit 05aa55dddb9ee4045c320661068bea78dad6a6e5 changed routines to
> succeed if the driver handler is not defined. Comments were not updated.

Applied to suspend-2.6/linux-next.

Thanks,
Rafael


> Signed-off-by: Aaro Koskinen <aaro.koskinen@nokia.com>
> ---
>  drivers/base/power/generic_ops.c |    4 ++--
>  1 files changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/drivers/base/power/generic_ops.c b/drivers/base/power/generic_ops.c
> index 81f2c84..3d2c350 100644
> --- a/drivers/base/power/generic_ops.c
> +++ b/drivers/base/power/generic_ops.c
> @@ -39,7 +39,7 @@ EXPORT_SYMBOL_GPL(pm_generic_runtime_idle);
>   *
>   * If PM operations are defined for the @dev's driver and they include
>   * ->runtime_suspend(), execute it and return its error code.  Otherwise,
> - * return -EINVAL.
> + * return 0.
>   */
>  int pm_generic_runtime_suspend(struct device *dev)
>  {
> @@ -58,7 +58,7 @@ EXPORT_SYMBOL_GPL(pm_generic_runtime_suspend);
>   *
>   * If PM operations are defined for the @dev's driver and they include
>   * ->runtime_resume(), execute it and return its error code.  Otherwise,
> - * return -EINVAL.
> + * return 0.
>   */
>  int pm_generic_runtime_resume(struct device *dev)
>  {
> 


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-11-26 22:05 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-11-19 15:48 [PATCH] pm: fix comments to match runtime callback code Aaro Koskinen
2010-11-26 22:04 ` Rafael J. Wysocki

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®