diff options
| -rw-r--r-- | drivers/iommu/qcom_iommu.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/iommu/qcom_iommu.c b/drivers/iommu/qcom_iommu.c index 65b9c99707f8..fe88a4880d3a 100644 --- a/drivers/iommu/qcom_iommu.c +++ b/drivers/iommu/qcom_iommu.c | |||
| @@ -885,16 +885,14 @@ static int qcom_iommu_device_remove(struct platform_device *pdev) | |||
| 885 | 885 | ||
| 886 | static int __maybe_unused qcom_iommu_resume(struct device *dev) | 886 | static int __maybe_unused qcom_iommu_resume(struct device *dev) |
| 887 | { | 887 | { |
| 888 | struct platform_device *pdev = to_platform_device(dev); | 888 | struct qcom_iommu_dev *qcom_iommu = dev_get_drvdata(dev); |
| 889 | struct qcom_iommu_dev *qcom_iommu = platform_get_drvdata(pdev); | ||
| 890 | 889 | ||
| 891 | return qcom_iommu_enable_clocks(qcom_iommu); | 890 | return qcom_iommu_enable_clocks(qcom_iommu); |
| 892 | } | 891 | } |
| 893 | 892 | ||
| 894 | static int __maybe_unused qcom_iommu_suspend(struct device *dev) | 893 | static int __maybe_unused qcom_iommu_suspend(struct device *dev) |
| 895 | { | 894 | { |
| 896 | struct platform_device *pdev = to_platform_device(dev); | 895 | struct qcom_iommu_dev *qcom_iommu = dev_get_drvdata(dev); |
| 897 | struct qcom_iommu_dev *qcom_iommu = platform_get_drvdata(pdev); | ||
| 898 | 896 | ||
| 899 | qcom_iommu_disable_clocks(qcom_iommu); | 897 | qcom_iommu_disable_clocks(qcom_iommu); |
| 900 | 898 | ||
