Browse Source

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 <linus.walleij@linaro.org>
Signed-off-by: Tejun Heo <tj@kernel.org>
Linus Walleij 8 năm trước cách đây
mục cha
commit
7ed4a21ad3
1 tập tin đã thay đổi với 0 bổ sung2 xóa
  1. 0 2
      drivers/ata/pata_bf54x.c

+ 0 - 2
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;
 }