diff options
author | Linus Walleij <linus.walleij@linaro.org> | 2017-05-30 11:46:42 +0200 |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2017-05-30 11:54:37 -0400 |
commit | 0fe98fa056d75d824d1939dd1e8b71927a5f288a (patch) | |
tree | 7e6a8ccb1bd9b5ac45c753a4e89b6b089a183fdd /drivers/ata | |
parent | a2136b31d37e8edcea93a00e73b6383403b5b76e (diff) | |
download | linux-0fe98fa056d75d824d1939dd1e8b71927a5f288a.tar.bz2 |
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>
Diffstat (limited to 'drivers/ata')
-rw-r--r-- | drivers/ata/pata_rb532_cf.c | 2 |
1 files changed, 0 insertions, 2 deletions
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; |