spi: clps711x: Remove unnecessary platform_set_drvdata()
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
@@ -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
A message that is not in the archive (sent off-list or not yet received): 1401891429-14271-1-git-send-email-shc_work-JGs/[email protected]
PATCH 2/4 spi: falcon: Remove unnecessary platform_set_drvdata()
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
@@ -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
PATCH 3/4 spi: omap-100k: Remove unnecessary platform_set_drvdata()
In reply to a message not in the archiveDrop 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
@@ -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
PATCH 4/4 spi: sh-msiof: Remove unnecessary platform_set_drvdata()
In reply to a message not in the archiveDrop 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
@@ -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
Mark Brown
AppliedQuoted 2 lines · Alexander Shiyan
Drop call to
platform_set_drvdata()as driver data is not used anywhere in the driver.
Applied all, thanks.