From: Alan Stern Date: Sun, 13 Dec 2009 19:28:30 +0000 (+0100) Subject: PM: allow for usage_count > 0 in pm_runtime_get() X-Git-Tag: v2.6.33-rc1~50^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1d531c14d2ed4b24472a4d773f00ed6d1cd34ee7;p=pandora-kernel.git PM: allow for usage_count > 0 in pm_runtime_get() This patch (as1308c) fixes __pm_runtime_get(). Currently the routine will resume a device if the prior usage count was 0. But this isn't right; thanks to pm_runtime_get_noresume() the usage count can be positive even while the device is suspended. Signed-off-by: Alan Stern Signed-off-by: Rafael J. Wysocki --- Reading git-diff-tree failed