Skip to content

Commit

Permalink
OMAP3+: smartreflex: request the memory region
Browse files Browse the repository at this point in the history
We are releasing the memory region, but never actually request it.

Signed-off-by: Aaro Koskinen <aaro.koskinen@nokia.com>
Signed-off-by: Kevin Hilman <khilman@ti.com>
  • Loading branch information
Aaro Koskinen authored and Tony Lindgren committed May 3, 2011
1 parent 0bf6e2e commit da9e739
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions arch/arm/mach-omap2/smartreflex.c
Original file line number Diff line number Diff line change
Expand Up @@ -847,6 +847,14 @@ static int __init omap_sr_probe(struct platform_device *pdev)
goto err_free_devinfo;
}

mem = request_mem_region(mem->start, resource_size(mem),
dev_name(&pdev->dev));
if (!mem) {
dev_err(&pdev->dev, "%s: no mem region\n", __func__);
ret = -EBUSY;
goto err_free_devinfo;
}

irq = platform_get_resource(pdev, IORESOURCE_IRQ, 0);

pm_runtime_enable(&pdev->dev);
Expand Down

0 comments on commit da9e739

Please sign in to comment.