diff options
Diffstat (limited to 'arch/arm/mach-omap2/devices.c')
-rw-r--r-- | arch/arm/mach-omap2/devices.c | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/arch/arm/mach-omap2/devices.c b/arch/arm/mach-omap2/devices.c index 738ae0d7b5b5..3cff7dc514df 100644 --- a/arch/arm/mach-omap2/devices.c +++ b/arch/arm/mach-omap2/devices.c | |||
@@ -725,29 +725,3 @@ static int __init omap2_init_devices(void) | |||
725 | return 0; | 725 | return 0; |
726 | } | 726 | } |
727 | arch_initcall(omap2_init_devices); | 727 | arch_initcall(omap2_init_devices); |
728 | |||
729 | #if defined(CONFIG_OMAP_WATCHDOG) || defined(CONFIG_OMAP_WATCHDOG_MODULE) | ||
730 | static int __init omap_init_wdt(void) | ||
731 | { | ||
732 | int id = -1; | ||
733 | struct platform_device *pdev; | ||
734 | struct omap_hwmod *oh; | ||
735 | char *oh_name = "wd_timer2"; | ||
736 | char *dev_name = "omap_wdt"; | ||
737 | |||
738 | if (!cpu_class_is_omap2() || of_have_populated_dt()) | ||
739 | return 0; | ||
740 | |||
741 | oh = omap_hwmod_lookup(oh_name); | ||
742 | if (!oh) { | ||
743 | pr_err("Could not look up wd_timer%d hwmod\n", id); | ||
744 | return -EINVAL; | ||
745 | } | ||
746 | |||
747 | pdev = omap_device_build(dev_name, id, oh, NULL, 0, NULL, 0, 0); | ||
748 | WARN(IS_ERR(pdev), "Can't build omap_device for %s:%s.\n", | ||
749 | dev_name, oh->name); | ||
750 | return 0; | ||
751 | } | ||
752 | subsys_initcall(omap_init_wdt); | ||
753 | #endif | ||