Skip to content
Snippets Groups Projects
Commit 8b920599 authored by Arve Hjønnevåg's avatar Arve Hjønnevåg
Browse files

ARM: etm: Don't require clock control


If clk_get fail, assume the etb does not need a separate clock.

Change-Id: Ia0bf3f5391e94a60ea45876aa7afc8a88a7ec3bf
Signed-off-by: default avatarArve Hjønnevåg <arve@android.com>
parent e29de7ac
No related branches found
No related tags found
No related merge requests found
......@@ -360,12 +360,11 @@ static int __init etb_probe(struct amba_device *dev, struct amba_id *id)
if (ret)
goto out_unmap;
/* Get optional clock. Currently used to select clock source on omap3 */
t->emu_clk = clk_get(&dev->dev, "emu_src_ck");
if (IS_ERR(t->emu_clk)) {
if (IS_ERR(t->emu_clk))
dev_dbg(&dev->dev, "Failed to obtain emu_src_ck.\n");
return -EFAULT;
}
else
clk_enable(t->emu_clk);
etb_unlock(t);
......@@ -401,8 +400,10 @@ static int etb_remove(struct amba_device *dev)
iounmap(t->etb_regs);
t->etb_regs = NULL;
if (!IS_ERR(t->emu_clk)) {
clk_disable(t->emu_clk);
clk_put(t->emu_clk);
}
amba_release_regions(dev);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment