diff options
author | Felipe Balbi <balbi@ti.com> | 2012-02-29 17:33:44 -0500 |
---|---|---|
committer | Kevin Hilman <khilman@ti.com> | 2012-03-05 14:29:26 -0500 |
commit | 1079a8b2907007ca6d11081fc403fc198ac503c4 (patch) | |
tree | 4c18c877ffeab73206cb13ef9b160ef1b4dae1e8 /arch/arm/mach-omap2/smartreflex.c | |
parent | d62bc78a65ed68ed05043d8e499672e2be7bb259 (diff) |
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/mach-omap2/smartreflex.c')
-rw-r--r-- | 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 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) | |||
888 | return -ENOMEM; | 888 | return -ENOMEM; |
889 | } | 889 | } |
890 | 890 | ||
891 | platform_set_drvdata(pdev, sr_info); | ||
892 | |||
891 | if (!pdata) { | 893 | if (!pdata) { |
892 | dev_err(&pdev->dev, "%s: platform data missing\n", __func__); | 894 | dev_err(&pdev->dev, "%s: platform data missing\n", __func__); |
893 | ret = -EINVAL; | 895 | ret = -EINVAL; |