aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/ata/pata_ep93xx.c
diff options
context:
space:
mode:
authorLinus Walleij <linus.walleij@linaro.org>2017-05-30 11:46:40 +0200
committerTejun Heo <tj@kernel.org>2017-05-30 11:54:36 -0400
commit62a98c2764e24b6ac637e3d3afe9dd6c5f088449 (patch)
treec6591e7f38d76bb97d5dbfba756e341879cf0740 /drivers/ata/pata_ep93xx.c
parentata: bf54x: cut drvdata assignment (diff)
downloadlinux-dev-62a98c2764e24b6ac637e3d3afe9dd6c5f088449.tar.xz
linux-dev-62a98c2764e24b6ac637e3d3afe9dd6c5f088449.zip
ata: ep93xx: cut drvdata assignment
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>
Diffstat (limited to 'drivers/ata/pata_ep93xx.c')
-rw-r--r--drivers/ata/pata_ep93xx.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/ata/pata_ep93xx.c b/drivers/ata/pata_ep93xx.c
index bf1b910c5d69..0a550190955a 100644
--- a/drivers/ata/pata_ep93xx.c
+++ b/drivers/ata/pata_ep93xx.c
@@ -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;