OSDN Git Service

mmc: sdhci-pxav2: remove unnecessary platform_set_drvdata() call
authorJisheng Zhang <jszhang@marvell.com>
Fri, 10 Mar 2017 03:17:32 +0000 (11:17 +0800)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 24 Apr 2017 19:41:20 +0000 (21:41 +0200)
sdhci_pltfm_init() has already set the platform drvdata for us, remove
the unnecessary platform_set_drvdata() call.

Signed-off-by: Jisheng Zhang <jszhang@marvell.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/sdhci-pxav2.c

index 80513f5..995083c 100644 (file)
@@ -226,8 +226,6 @@ static int sdhci_pxav2_probe(struct platform_device *pdev)
                goto err_add_host;
        }
 
-       platform_set_drvdata(pdev, host);
-
        return 0;
 
 err_add_host: