RM6785: init: Cleanup and refactor code

Change-Id: Id1df5f0ae453561892dd0530742313b063e7f1de
1 file changed