From 7ed4a21ad3131588e01178c915e6a854f391104e Mon Sep 17 00:00:00 2001 From: Linus Walleij Date: Tue, 30 May 2017 11:46:39 +0200 Subject: [PATCH] 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 --- drivers/ata/pata_bf54x.c | 2 -- 1 file changed, 2 deletions(-) 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; }