From: Felipe Balbi Date: Wed, 29 Feb 2012 22:33:44 +0000 (+0100) Subject: ARM: OMAP3+: SmartReflex: add missing platform_set_drvdata() X-Git-Tag: firefly_0821_release~3680^2~3234^2~7^2^2~5 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=1079a8b2907007ca6d11081fc403fc198ac503c4;p=firefly-linux-kernel-4.4.55.git 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 --- diff --git a/arch/arm/mach-omap2/smartreflex.c b/arch/arm/mach-omap2/smartreflex.c index 64d3ca72f0c9..b5dc1097e642 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;