ata: ep93xx: cut drvdata assignment
authorLinus Walleij <linus.walleij@linaro.org>
Tue, 30 May 2017 09:46:40 +0000 (11:46 +0200)
committerTejun Heo <tj@kernel.org>
Tue, 30 May 2017 15:54:36 +0000 (11:54 -0400)
ata_host_alloc_pinfo() assigns the host pointer to the
struct device * drvdata, do not assign drv_data like this.
Since ata_host_alloc_pinfo() is called after this site, the
correct value is set eventually, but this assignment is just
plain pointless.

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

index bf1b910c5d691b7032b7f1751b62237547f58570..0a550190955ad26915842aff139bd9e09588257b 100644 (file)
@@ -944,7 +944,6 @@ static int ep93xx_pata_probe(struct platform_device *pdev)
                goto err_rel_gpio;
        }
 
-       platform_set_drvdata(pdev, drv_data);
        drv_data->pdev = pdev;
        drv_data->ide_base = ide_base;
        drv_data->udma_in_phys = mem_res->start + IDEUDMADATAIN;