OMAP: omap_device: add omap_device_is_valid()