From: Linus Walleij Date: Tue, 30 May 2017 09:46:39 +0000 (+0200) Subject: ata: bf54x: cut drvdata assignment X-Git-Tag: v4.13-rc1~144^2~29 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=7ed4a21ad3131588e01178c915e6a854f391104e;p=karo-tx-linux.git ata: bf54x: 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/pata_bf54x.c b/drivers/ata/pata_bf54x.c index 9c5780a7e1b9..0e55a8da2748 100644 --- a/drivers/ata/pata_bf54x.c +++ b/drivers/ata/pata_bf54x.c @@ -1597,8 +1597,6 @@ static int bfin_atapi_probe(struct platform_device *pdev) return -ENODEV; } - platform_set_drvdata(pdev, host); - return 0; }