remove unneeded GET_PORTS in platform driver and additional code clean-up