ar71xx: cleanup SoC detection code