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

Commit 6e152231 authored by Xiao Jiang's avatar Xiao Jiang Committed by Tony Lindgren
Browse files

ARM: OMAP: avoid build wdt platform device if with dt support



If provided dt support, then skip add wdt platform device as usual.

Signed-off-by: default avatarXiao Jiang <jgq516@gmail.com>
Reviewed-by: default avatarJon Hunter <jon-hunter@ti.com>
Signed-off-by: default avatarTony Lindgren <tony@atomide.com>
parent 94c30732
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -772,7 +772,7 @@ static int __init omap_init_wdt(void)
	char *oh_name = "wd_timer2";
	char *dev_name = "omap_wdt";

	if (!cpu_class_is_omap2())
	if (!cpu_class_is_omap2() || of_have_populated_dt())
		return 0;

	oh = omap_hwmod_lookup(oh_name);