Re: [PATCH 2/2] serial: omap: suspend device on probe errors

From: Tony Lindgren
Date: Mon Apr 10 2017 - 12:16:14 EST


* Johan Hovold <johan@xxxxxxxxxx> [170410 02:27]:
> Make sure to actually suspend the device before returning after a failed
> (or deferred) probe.
>
> Note that autosuspend must be disabled before runtime pm is disabled in
> order to balance the usage count due to a negative autosuspend delay as
> well as to make the final put suspend the device synchronously.
>
> Fixes: 388bc2622680 ("omap-serial: Fix the error handling in the omap_serial probe")
> Cc: Shubhrajyoti D <shubhrajyoti@xxxxxx>
> Cc: Tony Lindgren <tony@xxxxxxxxxxx>
> Signed-off-by: Johan Hovold <johan@xxxxxxxxxx>

Acked-by: Tony Lindgren <tony@xxxxxxxxxxx>