Skip to contentSkip to conversation

spi: clps711x: Remove unnecessary platform_set_drvdata()

PATCH Applied Alexander Shiyan 2 participants 5 messages Jun 4, 2014 – Jun 6, 2014 1 message not in the archive SPI

lore
Share & tools
lore
#0 lore raw

PATCH 1/4 spi: clps711x: Remove unnecessary platform_set_drvdata()

Drop call to platform_set_drvdata() as driver data is not used anywhere in the driver.

---
 drivers/spi/spi-clps711x.c | 2 --
 1 file changed, 2 deletions(-)
drivers/spi/spi-clps711x.c +0 -2
index 4cd62f6..ce538da 100644
@@ -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);
Signature · 6 lines
1.8.5.5

--
To unsubscribe from this list: send the line "unsubscribe linux-spi" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
#2 lore raw

PATCH 2/4 spi: falcon: Remove unnecessary platform_set_drvdata()

In reply to a message not in the archive

Drop call to platform_set_drvdata() as driver data is not used anywhere in the driver.

---
 drivers/spi/spi-falcon.c | 2 --
 1 file changed, 2 deletions(-)
drivers/spi/spi-falcon.c +0 -2
index ba441ad..f73b300 100644
@@ -425,8 +425,6 @@ static int falcon_sflash_probe(struct platform_device *pdev)
 	master->unprepare_transfer_hardware = falcon_sflash_unprepare_xfer;
 	master->dev.of_node = pdev->dev.of_node;
 
-	platform_set_drvdata(pdev, priv);
-
 	ret = devm_spi_register_master(&pdev->dev, master);
 	if (ret)
 		spi_master_put(master);
Signature · 6 lines
1.8.5.5

--
To unsubscribe from this list: send the line "unsubscribe linux-spi" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
#3 lore raw

PATCH 3/4 spi: omap-100k: Remove unnecessary platform_set_drvdata()

In reply to a message not in the archive

Drop call to platform_set_drvdata() as driver data is not used anywhere in the driver.

---
 drivers/spi/spi-omap-100k.c | 2 --
 1 file changed, 2 deletions(-)
drivers/spi/spi-omap-100k.c +0 -2
index e7ffcde..5e91858 100644
@@ -420,8 +420,6 @@ static int omap1_spi100k_probe(struct platform_device *pdev)
 	master->min_speed_hz = OMAP1_SPI100K_MAX_FREQ/(1<<16);
 	master->max_speed_hz = OMAP1_SPI100K_MAX_FREQ;
 
-	platform_set_drvdata(pdev, master);
-
 	spi100k = spi_master_get_devdata(master);
 
 	/*
Signature · 6 lines
1.8.5.5

--
To unsubscribe from this list: send the line "unsubscribe linux-spi" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
#4 lore raw

PATCH 4/4 spi: sh-msiof: Remove unnecessary platform_set_drvdata()

In reply to a message not in the archive

Drop call to platform_set_drvdata() as driver data is not used anywhere in the driver.

---
 drivers/spi/spi-sh-msiof.c | 2 --
 1 file changed, 2 deletions(-)
drivers/spi/spi-sh-msiof.c +0 -2
index 45b0914..83c4370 100644
@@ -680,8 +680,6 @@ static int sh_msiof_spi_probe(struct platform_device *pdev)
 
 	p = spi_master_get_devdata(master);
 
-	platform_set_drvdata(pdev, p);
-
 	of_id = of_match_device(sh_msiof_match, &pdev->dev);
 	if (of_id) {
 		p->chipdata = of_id->data;
Signature · 6 lines
1.8.5.5

--
To unsubscribe from this list: send the line "unsubscribe linux-spi" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html