]> git.karo-electronics.de Git - linux-beck.git/commit
mtd: elm: Use correct check on return value of pm_runtime_get_sync
authorStefan Sørensen <stefan.sorensen@spectralink.com>
Mon, 3 Feb 2014 14:54:09 +0000 (15:54 +0100)
committerBrian Norris <computersforpeace@gmail.com>
Tue, 11 Mar 2014 05:42:23 +0000 (22:42 -0700)
commit0a21552a6e8ab9d3bacd490f5b94a178ce4d661d
treec4a9f0888242a723fcfa618c922deb8ef589f830
parent60c3bc1fd6f1fa40b415ef5b83e2948a89a3d79c
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 <stefan.sorensen@spectralink.com>
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
drivers/mtd/devices/elm.c