Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 0a21552a authored by Stefan Sørensen's avatar Stefan Sørensen Committed by Brian Norris
Browse files

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: default avatarStefan Sørensen <stefan.sorensen@spectralink.com>
Signed-off-by: default avatarBrian Norris <computersforpeace@gmail.com>
parent 60c3bc1f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment