linux-omap 2.6.39: sync with meta-texasinstruments
[openembedded.git] / recipes / linux / linux-omap-2.6.39 / pm / linux-omap-2.6.39-ti-pm / 0004-OMAP3-smartreflex-request-the-memory-region.patch
blob5ca9678ff00607cffca663825f0a9df9ef276c91
1 From d494d209b9b3c1cb13981a9756818f2822379a13 Mon Sep 17 00:00:00 2001
2 From: Aaro Koskinen <aaro.koskinen@nokia.com>
3 Date: Thu, 24 Mar 2011 18:35:32 +0200
4 Subject: [PATCH 04/12] OMAP3+: smartreflex: request the memory region
6 We are releasing the memory region, but never actually request it.
8 Signed-off-by: Aaro Koskinen <aaro.koskinen@nokia.com>
9 Signed-off-by: Kevin Hilman <khilman@ti.com>
10 Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
11 ---
12 arch/arm/mach-omap2/smartreflex.c | 8 ++++++++
13 1 files changed, 8 insertions(+), 0 deletions(-)
15 diff --git a/arch/arm/mach-omap2/smartreflex.c b/arch/arm/mach-omap2/smartreflex.c
16 index dbc4b6f..703143a 100644
17 --- a/arch/arm/mach-omap2/smartreflex.c
18 +++ b/arch/arm/mach-omap2/smartreflex.c
19 @@ -847,6 +847,14 @@ static int __init omap_sr_probe(struct platform_device *pdev)
20 goto err_free_devinfo;
23 + mem = request_mem_region(mem->start, resource_size(mem),
24 + dev_name(&pdev->dev));
25 + if (!mem) {
26 + dev_err(&pdev->dev, "%s: no mem region\n", __func__);
27 + ret = -EBUSY;
28 + goto err_free_devinfo;
29 + }
31 irq = platform_get_resource(pdev, IORESOURCE_IRQ, 0);
33 pm_runtime_enable(&pdev->dev);
34 --
35 1.6.6.1