Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 81d7c6ff authored by Kevin Hilman's avatar Kevin Hilman Committed by paul
Browse files

OMAP: hwmod: warn on missing clockdomain



WARN if a clock/hwmod is missing a clockdomain association since
resulting hwmod will not be able to correctly enable/disable clocks.

Signed-off-by: default avatarKevin Hilman <khilman@deeprootsystems.com>
Signed-off-by: default avatarPaul Walmsley <paul@pwsan.com>
parent d2292667
Loading
Loading
Loading
Loading
+3 −0
Original line number Original line Diff line number Diff line
@@ -353,6 +353,9 @@ static int _init_main_clk(struct omap_hwmod *oh)
		ret = -EINVAL;
		ret = -EINVAL;
	oh->_clk = c;
	oh->_clk = c;


	WARN(!c->clkdm, "omap_hwmod: %s: missing clockdomain for %s.\n",
	     oh->clkdev_con_id, c->name);

	return ret;
	return ret;
}
}