MIPS: ralink: fix USB frequency scaling
authorJohn Crispin <blogic@openwrt.org>
Mon, 4 Jan 2016 19:23:57 +0000 (20:23 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 5 Jul 2017 12:37:17 +0000 (14:37 +0200)
commitad310161f513b4ad8cf82eb4fc3de990e9412270
tree442fd20cd60ced195c9c5792f7364a9f7ac86e32
parent9a23a35a4fc6882dd0b3a6b125e51356c58dbb46
MIPS: ralink: fix USB frequency scaling

commit fad2522272ed5ed451d2d7b1dc547ddf3781cc7e upstream.

Commit 418d29c87061 ("MIPS: ralink: Unify SoC id handling") was not fully
correct. The logic for the SoC check got inverted. We need to check if it
is not a MT76x8.

Signed-off-by: John Crispin <blogic@openwrt.org>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/11992/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Signed-off-by: Amit Pundir <amit.pundir@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/mips/ralink/mt7620.c