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

index 01734d54c69cdcde06908e89f5e16576348f863d..95bf3abda6f656292be4998d7a28e55c1052065f 100644 (file)
@@ -1523,8 +1523,6 @@ static int sata_fsl_probe(struct platform_device *ofdev)
        ata_host_activate(host, irq, sata_fsl_interrupt, SATA_FSL_IRQ_FLAG,
                          &sata_fsl_sht);
 
-       platform_set_drvdata(ofdev, host);
-
        host_priv->intr_coalescing.show = fsl_sata_intr_coalescing_show;
        host_priv->intr_coalescing.store = fsl_sata_intr_coalescing_store;
        sysfs_attr_init(&host_priv->intr_coalescing.attr);