Fix the bug that automatic ISP doesn't work on 1788.
Remove unused code.