|
@@ -319,8 +319,7 @@ static int exynos_rng_remove(struct platform_device *pdev)
|
|
|
|
|
|
static int __maybe_unused exynos_rng_suspend(struct device *dev)
|
|
|
{
|
|
|
- struct platform_device *pdev = to_platform_device(dev);
|
|
|
- struct exynos_rng_dev *rng = platform_get_drvdata(pdev);
|
|
|
+ struct exynos_rng_dev *rng = dev_get_drvdata(dev);
|
|
|
int ret;
|
|
|
|
|
|
/* If we were never seeded then after resume it will be the same */
|
|
@@ -350,8 +349,7 @@ static int __maybe_unused exynos_rng_suspend(struct device *dev)
|
|
|
|
|
|
static int __maybe_unused exynos_rng_resume(struct device *dev)
|
|
|
{
|
|
|
- struct platform_device *pdev = to_platform_device(dev);
|
|
|
- struct exynos_rng_dev *rng = platform_get_drvdata(pdev);
|
|
|
+ struct exynos_rng_dev *rng = dev_get_drvdata(dev);
|
|
|
int ret;
|
|
|
|
|
|
/* Never seeded so nothing to do */
|