/* Return the powerdomain associated with the first underlying omap_hwmod for this omap_device. Intended for use by core OMAP PM code. Returns NULL on error or a struct powerdomain * upon success.  */
struct powerdomain* omap_device_get_pwrdm(struct omap_device *od)
/* Return the powerdomain associated with the first underlying omap_hwmod for this omap_device. Intended for use by core OMAP PM code. Returns NULL on error or a struct powerdomain * upon success.  */
struct powerdomain* omap_device_get_pwrdm(struct omap_device *od)
{
	if (!od->hwmods_cnt)
		return NULL;
	return omap_hwmod_get_pwrdm(od->hwmods[0]);
}