Skip to content

Commit

Permalink
ARM: OMAP3+: SmartReflex: add missing platform_set_drvdata()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Felipe Balbi authored and Kevin Hilman committed Mar 5, 2012
1 parent d62bc78 commit 1079a8b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions arch/arm/mach-omap2/smartreflex.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 1079a8b

Please sign in to comment.