Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1596592

[PATCH 2/3] mmc: sdhci-pxav2: remove unnecessary platform_set_drvdata() call

From Jisheng Zhang <jszhang@marvell.com>
Newsgroups linux.kernel
Subject [PATCH 2/3] mmc: sdhci-pxav2: remove unnecessary platform_set_drvdata() call
Date 2017-03-10 04:30 +0100
Message-ID <tjjpD-67H-3@gated-at.bofh.it> (permalink)
References <tjjpD-67H-5@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


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>
---
 drivers/mmc/host/sdhci-pxav2.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/drivers/mmc/host/sdhci-pxav2.c b/drivers/mmc/host/sdhci-pxav2.c
index 347eae2d7b6a..74e21ad699e0 100644
--- a/drivers/mmc/host/sdhci-pxav2.c
+++ b/drivers/mmc/host/sdhci-pxav2.c
@@ -222,8 +222,6 @@ static int sdhci_pxav2_probe(struct platform_device *pdev)
 		goto err_add_host;
 	}
 
-	platform_set_drvdata(pdev, host);
-
 	return 0;
 
 err_add_host:
-- 
2.11.0

Back to linux.kernel | Previous | Next | Find similar | Unroll thread


Thread

[PATCH 2/3] mmc: sdhci-pxav2: remove unnecessary platform_set_drvdata() call Jisheng Zhang <jszhang@marvell.com> - 2017-03-10 04:30 +0100

csiph-web