drm/nouveau: platform: Fix deferred probe

commit 870571a569 upstream.

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

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Thierry Reding 2016-02-24 18:34:43 +01:00 • committed by Greg Kroah-Hartman
commit 4323b4dbfc
2 changed files with 30 additions and 12 deletions