diff options
author | Tony Lindgren <tony@atomide.com> | 2017-05-31 18:51:38 -0400 |
---|---|---|
committer | Tony Lindgren <tony@atomide.com> | 2017-06-08 07:15:10 -0400 |
commit | 279ebec8f4721d6d3eaacfa218110df508618e2c (patch) | |
tree | a8c9b600c5f69c55633c4c5e24afe5047e245578 | |
parent | 1aa8f0cb19e59a0def9925d401d628c1846c3270 (diff) |
ARM: OMAP2+: Remove unused legacy code for watchdog
We are now booting all mach-omap2 in device tree only mode.
Any code that is only called in legacy boot mode where
of_have_populated_dt() is not set is safe to remove now.
Reviewed-by: Sebastian Reichel <sebastian.reichel@collabora.co.uk>
Signed-off-by: Tony Lindgren <tony@atomide.com>
-rw-r--r-- | arch/arm/mach-omap2/wd_timer.c | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/arch/arm/mach-omap2/wd_timer.c b/arch/arm/mach-omap2/wd_timer.c index ff0a68cf7439..0084b6c77cf1 100644 --- a/arch/arm/mach-omap2/wd_timer.c +++ b/arch/arm/mach-omap2/wd_timer.c | |||
@@ -102,31 +102,3 @@ int omap2_wd_timer_reset(struct omap_hwmod *oh) | |||
102 | return (c == MAX_MODULE_SOFTRESET_WAIT) ? -ETIMEDOUT : | 102 | return (c == MAX_MODULE_SOFTRESET_WAIT) ? -ETIMEDOUT : |
103 | omap2_wd_timer_disable(oh); | 103 | omap2_wd_timer_disable(oh); |
104 | } | 104 | } |
105 | |||
106 | static int __init omap_init_wdt(void) | ||
107 | { | ||
108 | int id = -1; | ||
109 | struct platform_device *pdev; | ||
110 | struct omap_hwmod *oh; | ||
111 | char *oh_name = "wd_timer2"; | ||
112 | char *dev_name = "omap_wdt"; | ||
113 | struct omap_wd_timer_platform_data pdata; | ||
114 | |||
115 | if (!cpu_class_is_omap2() || of_have_populated_dt()) | ||
116 | return 0; | ||
117 | |||
118 | oh = omap_hwmod_lookup(oh_name); | ||
119 | if (!oh) { | ||
120 | pr_err("Could not look up wd_timer%d hwmod\n", id); | ||
121 | return -EINVAL; | ||
122 | } | ||
123 | |||
124 | pdata.read_reset_sources = prm_read_reset_sources; | ||
125 | |||
126 | pdev = omap_device_build(dev_name, id, oh, &pdata, | ||
127 | sizeof(struct omap_wd_timer_platform_data)); | ||
128 | WARN(IS_ERR(pdev), "Can't build omap_device for %s:%s.\n", | ||
129 | dev_name, oh->name); | ||
130 | return 0; | ||
131 | } | ||
132 | omap_subsys_initcall(omap_init_wdt); | ||