drm/nouveau: platform: Fix deferred probe
authorThierry Reding <treding@nvidia.com>
Wed, 24 Feb 2016 17:34:43 +0000 (18:34 +0100)
committerDave Airlie <airlied@redhat.com>
Thu, 25 Feb 2016 02:20:59 +0000 (12:20 +1000)
commit870571a5698b2e9d0f4d2e5c6245967b582aab45
tree07007eaad18c24e2edaa7cb2396fb6561125d8f0
parent398cb0c93b18b625703db30d874351e6d4cc645a
drm/nouveau: platform: Fix deferred probe

The error cleanup paths aren't quite correct and will crash upon
deferred probe.

Cc: stable@vger.kernel.org # v4.3+
Reviewed-by: Ben Skeggs <bskeggs@redhat.com>
Reviewed-by: Alexandre Courbot <acourbot@nvidia.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/nouveau/nouveau_platform.c
drivers/gpu/drm/nouveau/nvkm/engine/device/tegra.c