Skip to content

Commit 680dc62

Browse files
committed
ARM: OMAP2+: Drop unused omap_init_hdq
We now boot all of mach-omap2 in device tree only mode and this is now dead code. Signed-off-by: Tony Lindgren <[email protected]>
1 parent 8823ddf commit 680dc62

File tree

1 file changed

+0
-22
lines changed

1 file changed

+0
-22
lines changed

arch/arm/mach-omap2/hdq1w.c

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -75,25 +75,3 @@ int omap_hdq1w_reset(struct omap_hwmod *oh)
7575

7676
return 0;
7777
}
78-
79-
#ifndef CONFIG_OF
80-
static int __init omap_init_hdq(void)
81-
{
82-
int id = -1;
83-
struct platform_device *pdev;
84-
struct omap_hwmod *oh;
85-
char *oh_name = "hdq1w";
86-
char *devname = "omap_hdq";
87-
88-
oh = omap_hwmod_lookup(oh_name);
89-
if (!oh)
90-
return 0;
91-
92-
pdev = omap_device_build(devname, id, oh, NULL, 0);
93-
WARN(IS_ERR(pdev), "Can't build omap_device for %s:%s.\n",
94-
devname, oh->name);
95-
96-
return 0;
97-
}
98-
omap_arch_initcall(omap_init_hdq);
99-
#endif

0 commit comments

Comments
 (0)