Skip to content

Commit

Permalink
ARM: OMAP2+: Drop unused omap_init_hdq
Browse files Browse the repository at this point in the history
We now boot all of mach-omap2 in device tree only mode and
this is now dead code.

Signed-off-by: Tony Lindgren <tony@atomide.com>
  • Loading branch information
Tony Lindgren committed Sep 19, 2017
1 parent 8823ddf commit 680dc62
Showing 1 changed file with 0 additions and 22 deletions.
22 changes: 0 additions & 22 deletions arch/arm/mach-omap2/hdq1w.c
Original file line number Diff line number Diff line change
Expand Up @@ -75,25 +75,3 @@ int omap_hdq1w_reset(struct omap_hwmod *oh)

return 0;
}

#ifndef CONFIG_OF
static int __init omap_init_hdq(void)
{
int id = -1;
struct platform_device *pdev;
struct omap_hwmod *oh;
char *oh_name = "hdq1w";
char *devname = "omap_hdq";

oh = omap_hwmod_lookup(oh_name);
if (!oh)
return 0;

pdev = omap_device_build(devname, id, oh, NULL, 0);
WARN(IS_ERR(pdev), "Can't build omap_device for %s:%s.\n",
devname, oh->name);

return 0;
}
omap_arch_initcall(omap_init_hdq);
#endif

0 comments on commit 680dc62

Please sign in to comment.