u-boot/arch/arm/mach-ipq40xx
Robert Marko 20476b51aa 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>
2020-12-01 14:12:28 -05:00
..
include/mach arm: Add support for Qualcomm IPQ40xx family 2020-07-29 08:43:40 -04:00
clock-ipq4019.c IPQ40xx: clk: dont always return 0 2020-12-01 14:12:28 -05:00
Kconfig arm: Add support for Qualcomm IPQ40xx family 2020-07-29 08:43:40 -04:00
Makefile arm: Add support for Qualcomm IPQ40xx family 2020-07-29 08:43:40 -04:00
pinctrl-ipq4019.c IPQ40xx: Add support for MDIO 2020-10-22 09:54:54 -04:00
pinctrl-snapdragon.c arm: Add support for Qualcomm IPQ40xx family 2020-07-29 08:43:40 -04:00
pinctrl-snapdragon.h arm: Add support for Qualcomm IPQ40xx family 2020-07-29 08:43:40 -04:00