diff options
author | Linus Walleij <linus.walleij@linaro.org> | 2017-05-30 05:46:44 -0400 |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2017-05-30 11:54:37 -0400 |
commit | 74ee91d8181b9d55fff79bf1fd555b0c8238f67e (patch) | |
tree | ad3ce6eff5855fe25e5659b0b09f67c315581598 | |
parent | 7c61a26891dcb938489c6f9ad793491bb9ae3989 (diff) |
ata: sata_fsl: 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>
-rw-r--r-- | drivers/ata/sata_fsl.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/ata/sata_fsl.c b/drivers/ata/sata_fsl.c index 01734d54c69c..95bf3abda6f6 100644 --- a/drivers/ata/sata_fsl.c +++ b/drivers/ata/sata_fsl.c | |||
@@ -1523,8 +1523,6 @@ static int sata_fsl_probe(struct platform_device *ofdev) | |||
1523 | ata_host_activate(host, irq, sata_fsl_interrupt, SATA_FSL_IRQ_FLAG, | 1523 | ata_host_activate(host, irq, sata_fsl_interrupt, SATA_FSL_IRQ_FLAG, |
1524 | &sata_fsl_sht); | 1524 | &sata_fsl_sht); |
1525 | 1525 | ||
1526 | platform_set_drvdata(ofdev, host); | ||
1527 | |||
1528 | host_priv->intr_coalescing.show = fsl_sata_intr_coalescing_show; | 1526 | host_priv->intr_coalescing.show = fsl_sata_intr_coalescing_show; |
1529 | host_priv->intr_coalescing.store = fsl_sata_intr_coalescing_store; | 1527 | host_priv->intr_coalescing.store = fsl_sata_intr_coalescing_store; |
1530 | sysfs_attr_init(&host_priv->intr_coalescing.attr); | 1528 | sysfs_attr_init(&host_priv->intr_coalescing.attr); |