Explorar o código

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 <linus.walleij@linaro.org>
Signed-off-by: Tejun Heo <tj@kernel.org>
Linus Walleij %!s(int64=8) %!d(string=hai) anos
pai
achega
a2136b31d3
Modificáronse 1 ficheiros con 0 adicións e 1 borrados
  1. 0 1
      drivers/ata/sata_dwc_460ex.c

+ 0 - 1
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: