ata: samsung_cf: cut drvdata assignment
authorLinus Walleij <linus.walleij@linaro.org>
Tue, 30 May 2017 09:46:43 +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/pata_samsung_cf.c

index 431c7de30ce64ebd431ddaf01ca87c2127debfad..50801c40b0295229ecc82d7ce52b849f9ac513f1 100644 (file)
@@ -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);