From: Linus Walleij Date: Tue, 30 May 2017 09:46:41 +0000 (+0200) Subject: ata: dwc_460ex: cut drvdata assignment X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=a2136b31d37e8edcea93a00e73b6383403b5b76e;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git ata: dwc_460ex: 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 Signed-off-by: Tejun Heo --- diff --git a/drivers/ata/sata_dwc_460ex.c b/drivers/ata/sata_dwc_460ex.c index e0939bd5ea73..ce128d5a6ded 100644 --- a/drivers/ata/sata_dwc_460ex.c +++ b/drivers/ata/sata_dwc_460ex.c @@ -1285,7 +1285,6 @@ static int sata_dwc_probe(struct platform_device *ofdev) if (err) dev_err(&ofdev->dev, "failed to activate host"); - dev_set_drvdata(&ofdev->dev, host); return 0; error_out: