Skip to content

Commit

Permalink
ARM: OMAP: avoid build wdt platform device if with dt support
Browse files Browse the repository at this point in the history
If provided dt support, then skip add wdt platform device as usual.

Signed-off-by: Xiao Jiang <jgq516@gmail.com>
Reviewed-by: Jon Hunter <jon-hunter@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
  • Loading branch information
Xiao Jiang authored and Tony Lindgren committed Jul 9, 2012
1 parent 94c3073 commit 6e15223
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/arm/mach-omap2/devices.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 6e15223

Please sign in to comment.