summaryrefslogtreecommitdiffstats
path: root/arch/arm
diff options
context:
space:
mode:
authorFelipe Balbi2012-02-29 23:33:44 +0100
committerKevin Hilman2012-03-05 20:29:26 +0100
commit1079a8b2907007ca6d11081fc403fc198ac503c4 (patch)
tree4c18c877ffeab73206cb13ef9b160ef1b4dae1e8 /arch/arm
parentARM: OMAP3+: hwmod: add SmartReflex IRQs (diff)
downloadkernel-qcow2-linux-1079a8b2907007ca6d11081fc403fc198ac503c4.tar.gz
kernel-qcow2-linux-1079a8b2907007ca6d11081fc403fc198ac503c4.tar.xz
kernel-qcow2-linux-1079a8b2907007ca6d11081fc403fc198ac503c4.zip
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 <balbi@ti.com> Signed-off-by: Jean Pihet <j-pihet@ti.com> Reviewed-by: Kevin Hilman <khilman@ti.com> Signed-off-by: Kevin Hilman <khilman@ti.com>
Diffstat (limited to 'arch/arm')
-rw-r--r--arch/arm/mach-omap2/smartreflex.c2
1 files changed, 2 insertions, 0 deletions
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;