summaryrefslogtreecommitdiffstats
path: root/arch/arm
diff options
context:
space:
mode:
authorAaro Koskinen <aaro.koskinen@nokia.com>2011-04-26 11:25:16 +0200
committerTony Lindgren <tony@atomide.com>2011-05-03 11:38:02 +0200
commitda9e7392f4b0c295a47ec7def38629959eb51ff2 (patch)
tree06b073d2ff33791420a1d74d8c71addcabd2be76 /arch/arm
parentOMAP3+: smartreflex: fix sr_late_init() error path in probe (diff)
downloadlinux-da9e7392f4b0c295a47ec7def38629959eb51ff2.tar.xz
linux-da9e7392f4b0c295a47ec7def38629959eb51ff2.zip
OMAP3+: smartreflex: request the memory region
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>
Diffstat (limited to 'arch/arm')
-rw-r--r--arch/arm/mach-omap2/smartreflex.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/arch/arm/mach-omap2/smartreflex.c b/arch/arm/mach-omap2/smartreflex.c
index dbc4b6f12294..703143a8700b 100644
--- a/arch/arm/mach-omap2/smartreflex.c
+++ b/arch/arm/mach-omap2/smartreflex.c
@@ -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);