diff options
Diffstat (limited to 'drivers/char/hw_random/omap-rng.c')
-rw-r--r-- | drivers/char/hw_random/omap-rng.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/char/hw_random/omap-rng.c b/drivers/char/hw_random/omap-rng.c index d2903e772270..6843ec87b98b 100644 --- a/drivers/char/hw_random/omap-rng.c +++ b/drivers/char/hw_random/omap-rng.c | |||
@@ -116,7 +116,7 @@ static int omap_rng_probe(struct platform_device *pdev) | |||
116 | }; | 116 | }; |
117 | 117 | ||
118 | omap_rng_ops.priv = (unsigned long)priv; | 118 | omap_rng_ops.priv = (unsigned long)priv; |
119 | dev_set_drvdata(&pdev->dev, priv); | 119 | platform_set_drvdata(pdev, priv); |
120 | 120 | ||
121 | priv->mem_res = platform_get_resource(pdev, IORESOURCE_MEM, 0); | 121 | priv->mem_res = platform_get_resource(pdev, IORESOURCE_MEM, 0); |
122 | priv->base = devm_ioremap_resource(&pdev->dev, priv->mem_res); | 122 | priv->base = devm_ioremap_resource(&pdev->dev, priv->mem_res); |
@@ -124,7 +124,7 @@ static int omap_rng_probe(struct platform_device *pdev) | |||
124 | ret = PTR_ERR(priv->base); | 124 | ret = PTR_ERR(priv->base); |
125 | goto err_ioremap; | 125 | goto err_ioremap; |
126 | } | 126 | } |
127 | dev_set_drvdata(&pdev->dev, priv); | 127 | platform_set_drvdata(pdev, priv); |
128 | 128 | ||
129 | pm_runtime_enable(&pdev->dev); | 129 | pm_runtime_enable(&pdev->dev); |
130 | pm_runtime_get_sync(&pdev->dev); | 130 | pm_runtime_get_sync(&pdev->dev); |
@@ -151,7 +151,7 @@ err_ioremap: | |||
151 | 151 | ||
152 | static int __exit omap_rng_remove(struct platform_device *pdev) | 152 | static int __exit omap_rng_remove(struct platform_device *pdev) |
153 | { | 153 | { |
154 | struct omap_rng_private_data *priv = dev_get_drvdata(&pdev->dev); | 154 | struct omap_rng_private_data *priv = platform_get_drvdata(pdev); |
155 | 155 | ||
156 | hwrng_unregister(&omap_rng_ops); | 156 | hwrng_unregister(&omap_rng_ops); |
157 | 157 | ||