Message ID | 20250409103344.3661603-1-sakari.ailus@linux.intel.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | [1/1] drm/nouveau/disp: Use dev->dev to get the device | expand |
diff --git a/drivers/gpu/drm/nouveau/nouveau_display.c b/drivers/gpu/drm/nouveau/nouveau_display.c index add006fc8d81..c50ec347b30a 100644 --- a/drivers/gpu/drm/nouveau/nouveau_display.c +++ b/drivers/gpu/drm/nouveau/nouveau_display.c @@ -495,7 +495,7 @@ nouveau_display_hpd_work(struct work_struct *work) if (first_changed_connector) drm_connector_put(first_changed_connector); - pm_runtime_mark_last_busy(drm->dev->dev); + pm_runtime_mark_last_busy(dev->dev); noop: pm_runtime_put_autosuspend(dev->dev); }
The local variable dev points to drm->dev already, use dev directly. Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com> --- Hi folks, The background is that I'll be using a Coccinelle spatch soon to remove (most) pm_runtime_mark_last_busy() calls. That won't work if the arguments aren't the same. - Sakari drivers/gpu/drm/nouveau/nouveau_display.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)