OMAP3: Move get_device_type() function to not duplicate code