[PATCH 2/2] mach-snapdragon/mach-ipq40xx: fix, merge and refactoring