From: Linus Walleij Date: Tue, 30 May 2017 09:46:42 +0000 (+0200) Subject: ata: rb532_cf: cut drvdata assignment X-Git-Tag: v4.13-rc1~144^2~26 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=0fe98fa056d75d824d1939dd1e8b71927a5f288a;p=karo-tx-linux.git 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 Signed-off-by: Tejun Heo --- diff --git a/drivers/ata/pata_rb532_cf.c b/drivers/ata/pata_rb532_cf.c index c8b6a780a290..653b9a0bf727 100644 --- a/drivers/ata/pata_rb532_cf.c +++ b/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;