generic: platform/mikrotik: graceful fallback for cpufreq_index
authorThibaut VARÈNE <hacks@slashdirt.org>
Fri, 5 Jun 2020 13:56:15 +0000 (15:56 +0200)
committerPetr Štetiar <ynezz@true.cz>
Wed, 8 Jul 2020 14:07:05 +0000 (16:07 +0200)
commit0217a9be0d84438251401bd4a8d21d3e857c5e91
tree0209a4e8c5d84071fff287b322129eb7324cc868
parent2714a4faab4149d6ba9da3c7ded047caa9ea7fab
generic: platform/mikrotik: graceful fallback for cpufreq_index

The current code would return an error on ath79 when the SoC isn't known
to the driver. Return the raw hex value instead, as happens with non
supported targets.
Also return the correctly incremented value from
sc_tag_cpufreq_ath79_arraysize()

Signed-off-by: Thibaut VARÈNE <hacks@slashdirt.org>
target/linux/generic/files/drivers/platform/mikrotik/rb_softconfig.c