]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commitdiff
OMAP3+: smartreflex: request the memory region
authorAaro Koskinen <aaro.koskinen@nokia.com>
Tue, 26 Apr 2011 09:25:16 +0000 (02:25 -0700)
committerTony Lindgren <tony@atomide.com>
Tue, 3 May 2011 09:38:02 +0000 (02:38 -0700)
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>
arch/arm/mach-omap2/smartreflex.c

index dbc4b6f122941c29002aa9f0d05c3c76b121d9e9..703143a8700be7c0fafabf2a02ebc1c6a9ff9298 100644 (file)
@@ -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);