Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1079a8b2 authored by Felipe Balbi's avatar Felipe Balbi Committed by Kevin Hilman
Browse files

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: default avatarFelipe Balbi <balbi@ti.com>
Signed-off-by: default avatarJean Pihet <j-pihet@ti.com>
Reviewed-by: default avatarKevin Hilman <khilman@ti.com>
Signed-off-by: default avatarKevin Hilman <khilman@ti.com>
parent d62bc78a
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -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;