Re: [PATCH] Device runtime suspend/resume fixes

From: Andrew Morton
Date: Wed May 26 2004 - 00:25:28 EST


Todd Poynor <tpoynor@xxxxxxxxxx> wrote:
>
> --- linux-2.6.6-orig/drivers/base/power/runtime.c 2004-05-10 11:22:58.000000000 -0700
> +++ linux-2.6.6-pm/drivers/base/power/runtime.c 2004-05-25 16:07:57.254838016 -0700
> @@ -12,9 +12,14 @@
>
> static void runtime_resume(struct device * dev)
> {
> + int error;
> +
> if (!dev->power.power_state)
> return;
> - resume_device(dev);
> + if (!(error = resume_device(dev)))
> + dev->power.power_state = 0;
> +
> + return error;
> }

err, this function needs a bit of work in the return value department...
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/