[PATCH 18/21] arm: omap: smartreflex: add missing platform_set_drvdata()
Jean Pihet
jean.pihet at newoldbits.com
Wed Jan 25 10:16:20 EST 2012
From: Felipe Balbi <balbi at ti.com>
that's very useful to fetch the correct struct sr_info
from PM handlers.
Signed-off-by: Felipe Balbi <balbi at ti.com>
Signed-off-by: Jean Pihet <j-pihet at ti.com>
---
arch/arm/mach-omap2/smartreflex.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/arch/arm/mach-omap2/smartreflex.c b/arch/arm/mach-omap2/smartreflex.c
index 65e1a7c..eacf4b3 100644
--- a/arch/arm/mach-omap2/smartreflex.c
+++ b/arch/arm/mach-omap2/smartreflex.c
@@ -1062,6 +1062,8 @@ static int __init omap_sr_probe(struct platform_device *pdev)
return -ENOMEM;
}
+ platform_set_drvdata(pdev, sr_info);
+
if (!pdata) {
dev_err(&pdev->dev, "%s: platform data missing\n", __func__);
ret = -EINVAL;
--
1.7.5.4
More information about the linux-arm-kernel
mailing list