From 5571a95633459377545220f70bb18fe872443b0a Mon Sep 17 00:00:00 2001 From: Felipe Balbi Date: Wed, 29 Feb 2012 23:33:44 +0100 Subject: [PATCH] ARM: OMAP3+: SmartReflex: add missing platform_set_drvdata() That's very useful to fetch the correct struct sr_info from the PM handlers. Signed-off-by: Felipe Balbi Signed-off-by: Jean Pihet Reviewed-by: Kevin Hilman Signed-off-by: Kevin Hilman --- arch/arm/mach-omap2/smartreflex.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/mach-omap2/smartreflex.c b/arch/arm/mach-omap2/smartreflex.c index 7ec14fd2af2f..dea345f49fdf 100644 --- a/arch/arm/mach-omap2/smartreflex.c +++ b/arch/arm/mach-omap2/smartreflex.c @@ -888,6 +888,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; -- 2.39.2