summaryrefslogtreecommitdiffstats
path: root/drivers/ata
diff options
context:
space:
mode:
authorLinus Walleij <linus.walleij@linaro.org>2017-05-30 11:46:43 +0200
committerTejun Heo <tj@kernel.org>2017-05-30 17:54:37 +0200
commit7c61a26891dcb938489c6f9ad793491bb9ae3989 (patch)
tree17c7db5322263d36fcddaa44c60c01d13dcfc909 /drivers/ata
parentata: rb532_cf: cut drvdata assignment (diff)
downloadlinux-7c61a26891dcb938489c6f9ad793491bb9ae3989.tar.xz
linux-7c61a26891dcb938489c6f9ad793491bb9ae3989.zip
ata: samsung_cf: cut drvdata assignment
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>
Diffstat (limited to 'drivers/ata')
-rw-r--r--drivers/ata/pata_samsung_cf.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/ata/pata_samsung_cf.c b/drivers/ata/pata_samsung_cf.c
index 431c7de30ce6..50801c40b029 100644
--- a/drivers/ata/pata_samsung_cf.c
+++ b/drivers/ata/pata_samsung_cf.c
@@ -582,8 +582,6 @@ static int __init pata_s3c_probe(struct platform_device *pdev)
/* Set endianness and enable the interface */
pata_s3c_hwinit(info, pdata);
- platform_set_drvdata(pdev, host);
-
ret = ata_host_activate(host, info->irq,
info->irq ? pata_s3c_irq : NULL,
0, &pata_s3c_sht);