drm/lima: Clean up redundant pdev pointer
There's no point explicitly tracking the platform device when it can be trivially derived from the regular device pointer in the couple of places it's ever used. Signed-off-by: Robin Murphy <robin.murphy@arm.com> Signed-off-by: Qiang Yu <yuq825@gmail.com> Link: https://patchwork.freedesktop.org/patch/msgid/8d9073cc91c10fc70910587fd1794e0e8f32b467.1587509150.git.robin.murphy@arm.com
This commit is contained in:
@ -101,13 +101,12 @@ void lima_devfreq_fini(struct lima_device *ldev)
|
||||
}
|
||||
|
||||
if (devfreq->devfreq) {
|
||||
devm_devfreq_remove_device(&ldev->pdev->dev,
|
||||
devfreq->devfreq);
|
||||
devm_devfreq_remove_device(ldev->dev, devfreq->devfreq);
|
||||
devfreq->devfreq = NULL;
|
||||
}
|
||||
|
||||
if (devfreq->opp_of_table_added) {
|
||||
dev_pm_opp_of_remove_table(&ldev->pdev->dev);
|
||||
dev_pm_opp_of_remove_table(ldev->dev);
|
||||
devfreq->opp_of_table_added = false;
|
||||
}
|
||||
|
||||
@ -125,7 +124,7 @@ void lima_devfreq_fini(struct lima_device *ldev)
|
||||
int lima_devfreq_init(struct lima_device *ldev)
|
||||
{
|
||||
struct thermal_cooling_device *cooling;
|
||||
struct device *dev = &ldev->pdev->dev;
|
||||
struct device *dev = ldev->dev;
|
||||
struct opp_table *opp_table;
|
||||
struct devfreq *devfreq;
|
||||
struct lima_devfreq *ldevfreq = &ldev->devfreq;
|
||||
|
Reference in New Issue
Block a user