commit | 20476b51aa4d77c774f14671a185b5ac94f86c49 | [log] [tgz] |
---|---|---|
author | Robert Marko <robert.marko@sartura.hr> | Wed Oct 28 13:56:25 2020 +0100 |
committer | Tom Rini <trini@konsulko.com> | Tue Dec 01 14:12:28 2020 -0500 |
tree | 234eeb503e68e7af4264e6af735c0cdcee0461cd | |
parent | 164cc98a7b9a8962a69cf4ae43bacb35eb98f51d [diff] |
IPQ40xx: clk: dont always return 0 Currently the driver will go through the clock ID-s and set/enable them as needed. But if the ID is unknown it will fall through the switch case to the default case which will always return 0. This is not correct and default cases should return a error code since clock ID is unknown. So lets return -EINVAL instead. Signed-off-by: Robert Marko <robert.marko@sartura.hr> Cc: Luka Perkov <luka.perkov@sartura.hr>