drm/nouveau: Remove invalid reference to struct drm_device.pdev
authorThomas Zimmermann <tzimmermann@suse.de>
Wed, 12 May 2021 18:55:27 +0000 (20:55 +0200)
committerThomas Zimmermann <tzimmermann@suse.de>
Thu, 13 May 2021 12:57:54 +0000 (14:57 +0200)
commitbfba94162ba7b1ab28bf78ccab8808c4a000fd8f
treecf724b0408d122fbe7dd7cb9f4fc21ba6c622791
parent68b433fe6937cfa3f8975d18643d5956254edd6a
drm/nouveau: Remove invalid reference to struct drm_device.pdev

The pdev field got removed from struct drm_device recently. Replace
the invalid reference with an upcast from the struct's dev field.

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Reviewed-by: Dave Airlie <airlied@redhat.com>
Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
Fixes: b347e04452ff ("drm: Remove pdev field from struct drm_device")
Cc: Thomas Zimmermann <tzimmermann@suse.de>
Cc: Maxime Ripard <maxime@cerno.tech>
Cc: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Cc: Maxime Ripard <mripard@kernel.org>
Cc: David Airlie <airlied@linux.ie>
Cc: Daniel Vetter <daniel@ffwll.ch>
Cc: dri-devel@lists.freedesktop.org
Link: https://patchwork.freedesktop.org/patch/msgid/20210512185527.26050-1-tzimmermann@suse.de
drivers/gpu/drm/nouveau/nouveau_connector.c