From: Stefan Sørensen Date: Mon, 3 Feb 2014 14:54:09 +0000 (+0100) Subject: mtd: elm: Use correct check on return value of pm_runtime_get_sync X-Git-Tag: v3.15-rc1~65^2~105 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0a21552a6e8ab9d3bacd490f5b94a178ce4d661d;p=pandora-kernel.git mtd: elm: Use correct check on return value of pm_runtime_get_sync The ELM driver incorrectly reagard any non-zero return value from pm_runtime_get_sync as an error, but it may return 1 if the device was already active. Fix to only error when return value is negative. Signed-off-by: Stefan Sørensen Signed-off-by: Brian Norris --- Reading git-diff-tree failed