]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
drm/tegra: vic: Do not clear driver data
authorThierry Reding <treding@nvidia.com>
Fri, 1 Feb 2019 13:28:35 +0000 (14:28 +0100)
committerThierry Reding <treding@nvidia.com>
Thu, 7 Feb 2019 17:29:00 +0000 (18:29 +0100)
Upon driver failure, the driver core will take care of clearing the
driver data, so there's no need to do so explicitly in the driver.

Reviewed-by: Dmitry Osipenko <digetx@gmail.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
drivers/gpu/drm/tegra/vic.c

index 739b894661ab02d167e23ddaafd5bc166891afd0..55a8cc162e9d57e1132347ded544b093e49970c3 100644 (file)
@@ -412,7 +412,6 @@ static int vic_probe(struct platform_device *pdev)
        err = host1x_client_register(&vic->client.base);
        if (err < 0) {
                dev_err(dev, "failed to register host1x client: %d\n", err);
-               platform_set_drvdata(pdev, NULL);
                goto exit_falcon;
        }