diff options
author | Mark Brown <broonie@linaro.org> | 2013-06-26 11:20:58 -0400 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2013-06-26 11:20:58 -0400 |
commit | 6140b05ca351000dd844f05495198d8425ccf394 (patch) | |
tree | 1024c1b1e07a206b509dab0aad0c8399a2a97635 | |
parent | 2924f096a816367c80cefc05036d8e9f5bd68f6c (diff) | |
parent | 89e8773075bae055090db518bf2085c0d40ca9d5 (diff) |
Merge remote-tracking branch 'spi/topic/core' into spi-next
-rw-r--r-- | drivers/spi/spi-altera.c | 2 | ||||
-rw-r--r-- | drivers/spi/spi-ath79.c | 2 | ||||
-rw-r--r-- | drivers/spi/spi-au1550.c | 2 | ||||
-rw-r--r-- | drivers/spi/spi-bcm63xx.c | 3 | ||||
-rw-r--r-- | drivers/spi/spi-bfin-sport.c | 3 | ||||
-rw-r--r-- | drivers/spi/spi-bfin5xx.c | 3 | ||||
-rw-r--r-- | drivers/spi/spi-clps711x.c | 2 | ||||
-rw-r--r-- | drivers/spi/spi-coldfire-qspi.c | 1 | ||||
-rw-r--r-- | drivers/spi/spi-dw-mmio.c | 2 | ||||
-rw-r--r-- | drivers/spi/spi-ep93xx.c | 2 | ||||
-rw-r--r-- | drivers/spi/spi-gpio.c | 2 | ||||
-rw-r--r-- | drivers/spi/spi-imx.c | 3 | ||||
-rw-r--r-- | drivers/spi/spi-oc-tiny.c | 2 | ||||
-rw-r--r-- | drivers/spi/spi-pxa2xx.c | 3 | ||||
-rw-r--r-- | drivers/spi/spi-s3c64xx.c | 2 |
15 files changed, 0 insertions, 34 deletions
diff --git a/drivers/spi/spi-altera.c b/drivers/spi/spi-altera.c index 6b7096e0ad68..8a6bb37910da 100644 --- a/drivers/spi/spi-altera.c +++ b/drivers/spi/spi-altera.c | |||
@@ -273,7 +273,6 @@ static int altera_spi_probe(struct platform_device *pdev) | |||
273 | exit_busy: | 273 | exit_busy: |
274 | err = -EBUSY; | 274 | err = -EBUSY; |
275 | exit: | 275 | exit: |
276 | platform_set_drvdata(pdev, NULL); | ||
277 | spi_master_put(master); | 276 | spi_master_put(master); |
278 | return err; | 277 | return err; |
279 | } | 278 | } |
@@ -284,7 +283,6 @@ static int altera_spi_remove(struct platform_device *dev) | |||
284 | struct spi_master *master = hw->bitbang.master; | 283 | struct spi_master *master = hw->bitbang.master; |
285 | 284 | ||
286 | spi_bitbang_stop(&hw->bitbang); | 285 | spi_bitbang_stop(&hw->bitbang); |
287 | platform_set_drvdata(dev, NULL); | ||
288 | spi_master_put(master); | 286 | spi_master_put(master); |
289 | return 0; | 287 | return 0; |
290 | } | 288 | } |
diff --git a/drivers/spi/spi-ath79.c b/drivers/spi/spi-ath79.c index 5e2d52ce387f..0e06407a4670 100644 --- a/drivers/spi/spi-ath79.c +++ b/drivers/spi/spi-ath79.c | |||
@@ -285,7 +285,6 @@ err_clk_put: | |||
285 | err_unmap: | 285 | err_unmap: |
286 | iounmap(sp->base); | 286 | iounmap(sp->base); |
287 | err_put_master: | 287 | err_put_master: |
288 | platform_set_drvdata(pdev, NULL); | ||
289 | spi_master_put(sp->bitbang.master); | 288 | spi_master_put(sp->bitbang.master); |
290 | 289 | ||
291 | return ret; | 290 | return ret; |
@@ -300,7 +299,6 @@ static int ath79_spi_remove(struct platform_device *pdev) | |||
300 | clk_disable(sp->clk); | 299 | clk_disable(sp->clk); |
301 | clk_put(sp->clk); | 300 | clk_put(sp->clk); |
302 | iounmap(sp->base); | 301 | iounmap(sp->base); |
303 | platform_set_drvdata(pdev, NULL); | ||
304 | spi_master_put(sp->bitbang.master); | 302 | spi_master_put(sp->bitbang.master); |
305 | 303 | ||
306 | return 0; | 304 | return 0; |
diff --git a/drivers/spi/spi-au1550.c b/drivers/spi/spi-au1550.c index d736fa942020..e1965553ab79 100644 --- a/drivers/spi/spi-au1550.c +++ b/drivers/spi/spi-au1550.c | |||
@@ -977,8 +977,6 @@ static int au1550_spi_remove(struct platform_device *pdev) | |||
977 | au1xxx_dbdma_chan_free(hw->dma_tx_ch); | 977 | au1xxx_dbdma_chan_free(hw->dma_tx_ch); |
978 | } | 978 | } |
979 | 979 | ||
980 | platform_set_drvdata(pdev, NULL); | ||
981 | |||
982 | spi_master_put(hw->master); | 980 | spi_master_put(hw->master); |
983 | return 0; | 981 | return 0; |
984 | } | 982 | } |
diff --git a/drivers/spi/spi-bcm63xx.c b/drivers/spi/spi-bcm63xx.c index 270f09c071fb..9fd7a39b8029 100644 --- a/drivers/spi/spi-bcm63xx.c +++ b/drivers/spi/spi-bcm63xx.c | |||
@@ -451,7 +451,6 @@ static int bcm63xx_spi_probe(struct platform_device *pdev) | |||
451 | out_clk_disable: | 451 | out_clk_disable: |
452 | clk_disable_unprepare(clk); | 452 | clk_disable_unprepare(clk); |
453 | out_err: | 453 | out_err: |
454 | platform_set_drvdata(pdev, NULL); | ||
455 | spi_master_put(master); | 454 | spi_master_put(master); |
456 | out_clk: | 455 | out_clk: |
457 | clk_put(clk); | 456 | clk_put(clk); |
@@ -473,8 +472,6 @@ static int bcm63xx_spi_remove(struct platform_device *pdev) | |||
473 | clk_disable_unprepare(bs->clk); | 472 | clk_disable_unprepare(bs->clk); |
474 | clk_put(bs->clk); | 473 | clk_put(bs->clk); |
475 | 474 | ||
476 | platform_set_drvdata(pdev, 0); | ||
477 | |||
478 | spi_master_put(master); | 475 | spi_master_put(master); |
479 | 476 | ||
480 | return 0; | 477 | return 0; |
diff --git a/drivers/spi/spi-bfin-sport.c b/drivers/spi/spi-bfin-sport.c index e4a858ad6ef6..07ec597f9732 100644 --- a/drivers/spi/spi-bfin-sport.c +++ b/drivers/spi/spi-bfin-sport.c | |||
@@ -876,9 +876,6 @@ static int bfin_sport_spi_remove(struct platform_device *pdev) | |||
876 | 876 | ||
877 | peripheral_free_list(drv_data->pin_req); | 877 | peripheral_free_list(drv_data->pin_req); |
878 | 878 | ||
879 | /* Prevent double remove */ | ||
880 | platform_set_drvdata(pdev, NULL); | ||
881 | |||
882 | return 0; | 879 | return 0; |
883 | } | 880 | } |
884 | 881 | ||
diff --git a/drivers/spi/spi-bfin5xx.c b/drivers/spi/spi-bfin5xx.c index e35c19cff9ca..59a73424419c 100644 --- a/drivers/spi/spi-bfin5xx.c +++ b/drivers/spi/spi-bfin5xx.c | |||
@@ -1407,9 +1407,6 @@ static int bfin_spi_remove(struct platform_device *pdev) | |||
1407 | 1407 | ||
1408 | peripheral_free_list(drv_data->pin_req); | 1408 | peripheral_free_list(drv_data->pin_req); |
1409 | 1409 | ||
1410 | /* Prevent double remove */ | ||
1411 | platform_set_drvdata(pdev, NULL); | ||
1412 | |||
1413 | return 0; | 1410 | return 0; |
1414 | } | 1411 | } |
1415 | 1412 | ||
diff --git a/drivers/spi/spi-clps711x.c b/drivers/spi/spi-clps711x.c index e322b5bf9910..17965fe225cc 100644 --- a/drivers/spi/spi-clps711x.c +++ b/drivers/spi/spi-clps711x.c | |||
@@ -249,7 +249,6 @@ err_out: | |||
249 | if (gpio_is_valid(hw->chipselect[i])) | 249 | if (gpio_is_valid(hw->chipselect[i])) |
250 | gpio_free(hw->chipselect[i]); | 250 | gpio_free(hw->chipselect[i]); |
251 | 251 | ||
252 | platform_set_drvdata(pdev, NULL); | ||
253 | spi_master_put(master); | 252 | spi_master_put(master); |
254 | kfree(master); | 253 | kfree(master); |
255 | 254 | ||
@@ -269,7 +268,6 @@ static int spi_clps711x_remove(struct platform_device *pdev) | |||
269 | gpio_free(hw->chipselect[i]); | 268 | gpio_free(hw->chipselect[i]); |
270 | 269 | ||
271 | devm_clk_put(&pdev->dev, hw->spi_clk); | 270 | devm_clk_put(&pdev->dev, hw->spi_clk); |
272 | platform_set_drvdata(pdev, NULL); | ||
273 | spi_unregister_master(master); | 271 | spi_unregister_master(master); |
274 | kfree(master); | 272 | kfree(master); |
275 | 273 | ||
diff --git a/drivers/spi/spi-coldfire-qspi.c b/drivers/spi/spi-coldfire-qspi.c index 15cda45afec6..0631b9d4a5de 100644 --- a/drivers/spi/spi-coldfire-qspi.c +++ b/drivers/spi/spi-coldfire-qspi.c | |||
@@ -518,7 +518,6 @@ static int mcfqspi_remove(struct platform_device *pdev) | |||
518 | /* disable the hardware (set the baud rate to 0) */ | 518 | /* disable the hardware (set the baud rate to 0) */ |
519 | mcfqspi_wr_qmr(mcfqspi, MCFQSPI_QMR_MSTR); | 519 | mcfqspi_wr_qmr(mcfqspi, MCFQSPI_QMR_MSTR); |
520 | 520 | ||
521 | platform_set_drvdata(pdev, NULL); | ||
522 | mcfqspi_cs_teardown(mcfqspi); | 521 | mcfqspi_cs_teardown(mcfqspi); |
523 | clk_disable(mcfqspi->clk); | 522 | clk_disable(mcfqspi->clk); |
524 | clk_put(mcfqspi->clk); | 523 | clk_put(mcfqspi->clk); |
diff --git a/drivers/spi/spi-dw-mmio.c b/drivers/spi/spi-dw-mmio.c index 4a6d5c9057a4..4aa8be865cc0 100644 --- a/drivers/spi/spi-dw-mmio.c +++ b/drivers/spi/spi-dw-mmio.c | |||
@@ -111,8 +111,6 @@ static int dw_spi_mmio_remove(struct platform_device *pdev) | |||
111 | struct dw_spi_mmio *dwsmmio = platform_get_drvdata(pdev); | 111 | struct dw_spi_mmio *dwsmmio = platform_get_drvdata(pdev); |
112 | struct resource *mem; | 112 | struct resource *mem; |
113 | 113 | ||
114 | platform_set_drvdata(pdev, NULL); | ||
115 | |||
116 | clk_disable(dwsmmio->clk); | 114 | clk_disable(dwsmmio->clk); |
117 | clk_put(dwsmmio->clk); | 115 | clk_put(dwsmmio->clk); |
118 | dwsmmio->clk = NULL; | 116 | dwsmmio->clk = NULL; |
diff --git a/drivers/spi/spi-ep93xx.c b/drivers/spi/spi-ep93xx.c index f1b14977abdf..15ea07d8f8d6 100644 --- a/drivers/spi/spi-ep93xx.c +++ b/drivers/spi/spi-ep93xx.c | |||
@@ -1123,7 +1123,6 @@ fail_put_clock: | |||
1123 | clk_put(espi->clk); | 1123 | clk_put(espi->clk); |
1124 | fail_release_master: | 1124 | fail_release_master: |
1125 | spi_master_put(master); | 1125 | spi_master_put(master); |
1126 | platform_set_drvdata(pdev, NULL); | ||
1127 | 1126 | ||
1128 | return error; | 1127 | return error; |
1129 | } | 1128 | } |
@@ -1158,7 +1157,6 @@ static int ep93xx_spi_remove(struct platform_device *pdev) | |||
1158 | 1157 | ||
1159 | ep93xx_spi_release_dma(espi); | 1158 | ep93xx_spi_release_dma(espi); |
1160 | clk_put(espi->clk); | 1159 | clk_put(espi->clk); |
1161 | platform_set_drvdata(pdev, NULL); | ||
1162 | 1160 | ||
1163 | spi_unregister_master(master); | 1161 | spi_unregister_master(master); |
1164 | return 0; | 1162 | return 0; |
diff --git a/drivers/spi/spi-gpio.c b/drivers/spi/spi-gpio.c index a7801a889ff9..a54524cf42cc 100644 --- a/drivers/spi/spi-gpio.c +++ b/drivers/spi/spi-gpio.c | |||
@@ -512,8 +512,6 @@ static int spi_gpio_remove(struct platform_device *pdev) | |||
512 | status = spi_bitbang_stop(&spi_gpio->bitbang); | 512 | status = spi_bitbang_stop(&spi_gpio->bitbang); |
513 | spi_master_put(spi_gpio->bitbang.master); | 513 | spi_master_put(spi_gpio->bitbang.master); |
514 | 514 | ||
515 | platform_set_drvdata(pdev, NULL); | ||
516 | |||
517 | if (SPI_MISO_GPIO != SPI_GPIO_NO_MISO) | 515 | if (SPI_MISO_GPIO != SPI_GPIO_NO_MISO) |
518 | gpio_free(SPI_MISO_GPIO); | 516 | gpio_free(SPI_MISO_GPIO); |
519 | if (SPI_MOSI_GPIO != SPI_GPIO_NO_MOSI) | 517 | if (SPI_MOSI_GPIO != SPI_GPIO_NO_MOSI) |
diff --git a/drivers/spi/spi-imx.c b/drivers/spi/spi-imx.c index 982667383dd5..b805cd0e00b5 100644 --- a/drivers/spi/spi-imx.c +++ b/drivers/spi/spi-imx.c | |||
@@ -902,7 +902,6 @@ out_gpio_free: | |||
902 | } | 902 | } |
903 | spi_master_put(master); | 903 | spi_master_put(master); |
904 | kfree(master); | 904 | kfree(master); |
905 | platform_set_drvdata(pdev, NULL); | ||
906 | return ret; | 905 | return ret; |
907 | } | 906 | } |
908 | 907 | ||
@@ -929,8 +928,6 @@ static int spi_imx_remove(struct platform_device *pdev) | |||
929 | 928 | ||
930 | release_mem_region(res->start, resource_size(res)); | 929 | release_mem_region(res->start, resource_size(res)); |
931 | 930 | ||
932 | platform_set_drvdata(pdev, NULL); | ||
933 | |||
934 | return 0; | 931 | return 0; |
935 | } | 932 | } |
936 | 933 | ||
diff --git a/drivers/spi/spi-oc-tiny.c b/drivers/spi/spi-oc-tiny.c index e60a776ed2d4..58deb79d046b 100644 --- a/drivers/spi/spi-oc-tiny.c +++ b/drivers/spi/spi-oc-tiny.c | |||
@@ -368,7 +368,6 @@ exit_gpio: | |||
368 | exit_busy: | 368 | exit_busy: |
369 | err = -EBUSY; | 369 | err = -EBUSY; |
370 | exit: | 370 | exit: |
371 | platform_set_drvdata(pdev, NULL); | ||
372 | spi_master_put(master); | 371 | spi_master_put(master); |
373 | return err; | 372 | return err; |
374 | } | 373 | } |
@@ -382,7 +381,6 @@ static int tiny_spi_remove(struct platform_device *pdev) | |||
382 | spi_bitbang_stop(&hw->bitbang); | 381 | spi_bitbang_stop(&hw->bitbang); |
383 | for (i = 0; i < hw->gpio_cs_count; i++) | 382 | for (i = 0; i < hw->gpio_cs_count; i++) |
384 | gpio_free(hw->gpio_cs[i]); | 383 | gpio_free(hw->gpio_cs[i]); |
385 | platform_set_drvdata(pdev, NULL); | ||
386 | spi_master_put(master); | 384 | spi_master_put(master); |
387 | return 0; | 385 | return 0; |
388 | } | 386 | } |
diff --git a/drivers/spi/spi-pxa2xx.c b/drivers/spi/spi-pxa2xx.c index cca27d840e1f..d161d45e021e 100644 --- a/drivers/spi/spi-pxa2xx.c +++ b/drivers/spi/spi-pxa2xx.c | |||
@@ -1283,9 +1283,6 @@ static int pxa2xx_spi_remove(struct platform_device *pdev) | |||
1283 | /* Disconnect from the SPI framework */ | 1283 | /* Disconnect from the SPI framework */ |
1284 | spi_unregister_master(drv_data->master); | 1284 | spi_unregister_master(drv_data->master); |
1285 | 1285 | ||
1286 | /* Prevent double remove */ | ||
1287 | platform_set_drvdata(pdev, NULL); | ||
1288 | |||
1289 | return 0; | 1286 | return 0; |
1290 | } | 1287 | } |
1291 | 1288 | ||
diff --git a/drivers/spi/spi-s3c64xx.c b/drivers/spi/spi-s3c64xx.c index 315ff1298dbf..32ba3555f8b9 100644 --- a/drivers/spi/spi-s3c64xx.c +++ b/drivers/spi/spi-s3c64xx.c | |||
@@ -1400,7 +1400,6 @@ err3: | |||
1400 | err2: | 1400 | err2: |
1401 | clk_disable_unprepare(sdd->clk); | 1401 | clk_disable_unprepare(sdd->clk); |
1402 | err0: | 1402 | err0: |
1403 | platform_set_drvdata(pdev, NULL); | ||
1404 | spi_master_put(master); | 1403 | spi_master_put(master); |
1405 | 1404 | ||
1406 | return ret; | 1405 | return ret; |
@@ -1421,7 +1420,6 @@ static int s3c64xx_spi_remove(struct platform_device *pdev) | |||
1421 | 1420 | ||
1422 | clk_disable_unprepare(sdd->clk); | 1421 | clk_disable_unprepare(sdd->clk); |
1423 | 1422 | ||
1424 | platform_set_drvdata(pdev, NULL); | ||
1425 | spi_master_put(master); | 1423 | spi_master_put(master); |
1426 | 1424 | ||
1427 | return 0; | 1425 | return 0; |