ata: dwc_460ex: cut drvdata assignment
authorLinus Walleij <linus.walleij@linaro.org>
Tue, 30 May 2017 09:46:41 +0000 (11:46 +0200)
committerTejun Heo <tj@kernel.org>
Tue, 30 May 2017 15:54:37 +0000 (11:54 -0400)
ata_host_alloc_pinfo() assigns the host pointer to the
struct device * drvdata, do not assign it a second time.

Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Tejun Heo <tj@kernel.org>
drivers/ata/sata_dwc_460ex.c

index e0939bd5ea73526f7dcc643d4202434bf1f796a1..ce128d5a6ded21b7603d737be439fa89e9050d56 100644 (file)
@@ -1285,7 +1285,6 @@ static int sata_dwc_probe(struct platform_device *ofdev)
        if (err)
                dev_err(&ofdev->dev, "failed to activate host");
 
-       dev_set_drvdata(&ofdev->dev, host);
        return 0;
 
 error_out: