fix pointer warnings in omap code and enable thermal framework

Some warnings still remain (mostly unused variables/functions).
Legacy code referring to thermal sensors has been disabled in
favor of the newer (and untested) thermal management framework.

Still untested. Bring-up patches from hardware testing to follow.