aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/spi
diff options
context:
space:
mode:
authorMark Brown <broonie@linaro.org>2014-06-30 14:58:56 -0400
committerMark Brown <broonie@linaro.org>2014-06-30 14:58:56 -0400
commit19dee0d2c9f36a04387d8d0d7e531ab94eef6dc0 (patch)
tree16d625cdf57212c70b2eae5d86e3924ff3116031 /drivers/spi
parentb0d0ce8b6b91a0f6f99045b6019fc4c824634fb4 (diff)
parent8e3489f3b6c159079cf690d0913409e1178ccf2f (diff)
Merge remote-tracking branch 'spi/topic/cleanup' into spi-sh-msiof
Conflicts: drivers/spi/spi-sh-msiof.c
Diffstat (limited to 'drivers/spi')
-rw-r--r--drivers/spi/spi-cadence.c2
-rw-r--r--drivers/spi/spi-clps711x.c2
-rw-r--r--drivers/spi/spi-falcon.c2
-rw-r--r--drivers/spi/spi-fsl-spi.c2
-rw-r--r--drivers/spi/spi-omap-100k.c2
-rw-r--r--drivers/spi/spi-sh-hspi.c2
6 files changed, 3 insertions, 9 deletions
diff --git a/drivers/spi/spi-cadence.c b/drivers/spi/spi-cadence.c
index bb758978465d..98b763b705d7 100644
--- a/drivers/spi/spi-cadence.c
+++ b/drivers/spi/spi-cadence.c
@@ -647,7 +647,7 @@ static int __maybe_unused cdns_spi_resume(struct device *dev)
647static SIMPLE_DEV_PM_OPS(cdns_spi_dev_pm_ops, cdns_spi_suspend, 647static SIMPLE_DEV_PM_OPS(cdns_spi_dev_pm_ops, cdns_spi_suspend,
648 cdns_spi_resume); 648 cdns_spi_resume);
649 649
650static struct of_device_id cdns_spi_of_match[] = { 650static const struct of_device_id cdns_spi_of_match[] = {
651 { .compatible = "xlnx,zynq-spi-r1p6" }, 651 { .compatible = "xlnx,zynq-spi-r1p6" },
652 { .compatible = "cdns,spi-r1p6" }, 652 { .compatible = "cdns,spi-r1p6" },
653 { /* end of table */ } 653 { /* end of table */ }
diff --git a/drivers/spi/spi-clps711x.c b/drivers/spi/spi-clps711x.c
index 4cd62f636547..ce538dad526b 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)
184 } 184 }
185 master->max_speed_hz = clk_get_rate(hw->spi_clk); 185 master->max_speed_hz = clk_get_rate(hw->spi_clk);
186 186
187 platform_set_drvdata(pdev, master);
188
189 hw->syscon = syscon_regmap_lookup_by_pdevname("syscon.3"); 187 hw->syscon = syscon_regmap_lookup_by_pdevname("syscon.3");
190 if (IS_ERR(hw->syscon)) { 188 if (IS_ERR(hw->syscon)) {
191 ret = PTR_ERR(hw->syscon); 189 ret = PTR_ERR(hw->syscon);
diff --git a/drivers/spi/spi-falcon.c b/drivers/spi/spi-falcon.c
index ba441ad9a007..f73b3004d6d3 100644
--- a/drivers/spi/spi-falcon.c
+++ b/drivers/spi/spi-falcon.c
@@ -425,8 +425,6 @@ static int falcon_sflash_probe(struct platform_device *pdev)
425 master->unprepare_transfer_hardware = falcon_sflash_unprepare_xfer; 425 master->unprepare_transfer_hardware = falcon_sflash_unprepare_xfer;
426 master->dev.of_node = pdev->dev.of_node; 426 master->dev.of_node = pdev->dev.of_node;
427 427
428 platform_set_drvdata(pdev, priv);
429
430 ret = devm_spi_register_master(&pdev->dev, master); 428 ret = devm_spi_register_master(&pdev->dev, master);
431 if (ret) 429 if (ret)
432 spi_master_put(master); 430 spi_master_put(master);
diff --git a/drivers/spi/spi-fsl-spi.c b/drivers/spi/spi-fsl-spi.c
index 98ccd231bf00..9452f6740997 100644
--- a/drivers/spi/spi-fsl-spi.c
+++ b/drivers/spi/spi-fsl-spi.c
@@ -58,7 +58,7 @@ static struct fsl_spi_match_data of_fsl_spi_grlib_config = {
58 .type = TYPE_GRLIB, 58 .type = TYPE_GRLIB,
59}; 59};
60 60
61static struct of_device_id of_fsl_spi_match[] = { 61static const struct of_device_id of_fsl_spi_match[] = {
62 { 62 {
63 .compatible = "fsl,spi", 63 .compatible = "fsl,spi",
64 .data = &of_fsl_spi_fsl_config, 64 .data = &of_fsl_spi_fsl_config,
diff --git a/drivers/spi/spi-omap-100k.c b/drivers/spi/spi-omap-100k.c
index e7ffcded4e14..5e91858f6f01 100644
--- a/drivers/spi/spi-omap-100k.c
+++ b/drivers/spi/spi-omap-100k.c
@@ -420,8 +420,6 @@ static int omap1_spi100k_probe(struct platform_device *pdev)
420 master->min_speed_hz = OMAP1_SPI100K_MAX_FREQ/(1<<16); 420 master->min_speed_hz = OMAP1_SPI100K_MAX_FREQ/(1<<16);
421 master->max_speed_hz = OMAP1_SPI100K_MAX_FREQ; 421 master->max_speed_hz = OMAP1_SPI100K_MAX_FREQ;
422 422
423 platform_set_drvdata(pdev, master);
424
425 spi100k = spi_master_get_devdata(master); 423 spi100k = spi_master_get_devdata(master);
426 424
427 /* 425 /*
diff --git a/drivers/spi/spi-sh-hspi.c b/drivers/spi/spi-sh-hspi.c
index c8e795ef2e13..94b5faed21e2 100644
--- a/drivers/spi/spi-sh-hspi.c
+++ b/drivers/spi/spi-sh-hspi.c
@@ -304,7 +304,7 @@ static int hspi_remove(struct platform_device *pdev)
304 return 0; 304 return 0;
305} 305}
306 306
307static struct of_device_id hspi_of_match[] = { 307static const struct of_device_id hspi_of_match[] = {
308 { .compatible = "renesas,hspi", }, 308 { .compatible = "renesas,hspi", },
309 { /* sentinel */ } 309 { /* sentinel */ }
310}; 310};