diff mbox

[1/4] spi: clps711x: Remove unnecessary platform_set_drvdata()

Message ID 1401891429-14271-1-git-send-email-shc_work@mail.ru (mailing list archive)
State Accepted
Commit ba9e4b4a652d01bce7299ad8ed9abb9c5701450a
Headers show

Commit Message

Alexander Shiyan June 4, 2014, 2:17 p.m. UTC
Drop call to platform_set_drvdata() as driver data is not used
anywhere in the driver.

Signed-off-by: Alexander Shiyan <shc_work@mail.ru>
---
 drivers/spi/spi-clps711x.c | 2 --
 1 file changed, 2 deletions(-)

Comments

Mark Brown June 6, 2014, 10:14 a.m. UTC | #1
On Wed, Jun 04, 2014 at 06:17:06PM +0400, Alexander Shiyan wrote:
> Drop call to platform_set_drvdata() as driver data is not used
> anywhere in the driver.

Applied all, thanks.
diff mbox

Patch

diff --git a/drivers/spi/spi-clps711x.c b/drivers/spi/spi-clps711x.c
index 4cd62f6..ce538da 100644
--- a/drivers/spi/spi-clps711x.c
+++ b/drivers/spi/spi-clps711x.c
@@ -184,8 +184,6 @@  static int spi_clps711x_probe(struct platform_device *pdev)
 	}
 	master->max_speed_hz = clk_get_rate(hw->spi_clk);
 
-	platform_set_drvdata(pdev, master);
-
 	hw->syscon = syscon_regmap_lookup_by_pdevname("syscon.3");
 	if (IS_ERR(hw->syscon)) {
 		ret = PTR_ERR(hw->syscon);