From: Ulf Hansson Date: Wed, 13 Nov 2013 14:45:03 +0000 (+0100) Subject: PM / Runtime: Fix error path for prepare X-Git-Tag: v3.13-rc1~28^2~3^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=aa1b9f13b3346352455bfdc343ecff7667b84ff5;p=pandora-kernel.git PM / Runtime: Fix error path for prepare If a device prepare callback for some reason would fail, the PM core prevented the device from going inactive forever. In this case, to reverse the pm_runtime_get_noresume() we invokes the asyncronous pm_runtime_put(), thus restoring the usage count. Signed-off-by: Ulf Hansson Signed-off-by: Rafael J. Wysocki --- Reading git-diff-tree failed