瀏覽代碼

ata: samsung_cf: 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 年之前
父節點
當前提交
7c61a26891
共有 1 個文件被更改,包括 0 次插入2 次删除
  1. 0 2
      drivers/ata/pata_samsung_cf.c

+ 0 - 2
drivers/ata/pata_samsung_cf.c

@@ -582,8 +582,6 @@ static int __init pata_s3c_probe(struct platform_device *pdev)
 	/* Set endianness and enable the interface */
 	pata_s3c_hwinit(info, pdata);
 
-	platform_set_drvdata(pdev, host);
-
 	ret = ata_host_activate(host, info->irq,
 				info->irq ? pata_s3c_irq : NULL,
 				0, &pata_s3c_sht);