浏览代码

ata: rb532_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 年之前
父节点
当前提交
0fe98fa056
共有 1 个文件被更改,包括 0 次插入2 次删除
  1. 0 2
      drivers/ata/pata_rb532_cf.c

+ 0 - 2
drivers/ata/pata_rb532_cf.c

@@ -148,8 +148,6 @@ static int rb532_pata_driver_probe(struct platform_device *pdev)
 	if (!ah)
 		return -ENOMEM;
 
-	platform_set_drvdata(pdev, ah);
-
 	info = devm_kzalloc(&pdev->dev, sizeof(*info), GFP_KERNEL);
 	if (!info)
 		return -ENOMEM;