]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
ata: bf54x: cut drvdata assignment
authorLinus Walleij <linus.walleij@linaro.org>
Tue, 30 May 2017 09:46:39 +0000 (11:46 +0200)
committerTejun Heo <tj@kernel.org>
Tue, 30 May 2017 15:54:36 +0000 (11:54 -0400)
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>
drivers/ata/pata_bf54x.c

index 9c5780a7e1b925dc668b6bade617d07c0bb0a2a2..0e55a8da274878e89f6f75d573570c77ac238e01 100644 (file)
@@ -1597,8 +1597,6 @@ static int bfin_atapi_probe(struct platform_device *pdev)
                return -ENODEV;
        }
 
-       platform_set_drvdata(pdev, host);
-
        return 0;
 }