diff options
author | Mark Brown <broonie@linaro.org> | 2013-10-25 04:51:27 -0400 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2013-10-25 04:51:27 -0400 |
commit | a59ca9773c587afac333dd0932bba0f1f113b396 (patch) | |
tree | 1efc4da10eac11a20c5534997e6f04bf461cf866 /drivers/spi/spi-fsl-dspi.c | |
parent | a35a1df6357bebf68b78b9222f8ccf224ca7c1c7 (diff) | |
parent | 05209f457069e595ce0262a9032cbade05398571 (diff) |
Merge remote-tracking branch 'spi/topic/dspi' into spi-next
Diffstat (limited to 'drivers/spi/spi-fsl-dspi.c')
-rw-r--r-- | drivers/spi/spi-fsl-dspi.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/spi/spi-fsl-dspi.c b/drivers/spi/spi-fsl-dspi.c index 4a223d6d23b8..8641b03bdd7a 100644 --- a/drivers/spi/spi-fsl-dspi.c +++ b/drivers/spi/spi-fsl-dspi.c | |||
@@ -108,7 +108,7 @@ struct fsl_dspi { | |||
108 | struct spi_bitbang bitbang; | 108 | struct spi_bitbang bitbang; |
109 | struct platform_device *pdev; | 109 | struct platform_device *pdev; |
110 | 110 | ||
111 | void *base; | 111 | void __iomem *base; |
112 | int irq; | 112 | int irq; |
113 | struct clk *clk; | 113 | struct clk *clk; |
114 | 114 | ||
@@ -165,7 +165,7 @@ static void hz_to_spi_baud(char *pbr, char *br, int speed_hz, | |||
165 | } | 165 | } |
166 | } | 166 | } |
167 | 167 | ||
168 | pr_warn("Can not find valid buad rate,speed_hz is %d,clkrate is %ld\ | 168 | pr_warn("Can not find valid baud rate,speed_hz is %d,clkrate is %ld\ |
169 | ,we use the max prescaler value.\n", speed_hz, clkrate); | 169 | ,we use the max prescaler value.\n", speed_hz, clkrate); |
170 | *pbr = ARRAY_SIZE(pbr_tbl) - 1; | 170 | *pbr = ARRAY_SIZE(pbr_tbl) - 1; |
171 | *br = ARRAY_SIZE(brs) - 1; | 171 | *br = ARRAY_SIZE(brs) - 1; |
@@ -520,7 +520,6 @@ out_clk_put: | |||
520 | clk_disable_unprepare(dspi->clk); | 520 | clk_disable_unprepare(dspi->clk); |
521 | out_master_put: | 521 | out_master_put: |
522 | spi_master_put(master); | 522 | spi_master_put(master); |
523 | platform_set_drvdata(pdev, NULL); | ||
524 | 523 | ||
525 | return ret; | 524 | return ret; |
526 | } | 525 | } |
@@ -531,6 +530,7 @@ static int dspi_remove(struct platform_device *pdev) | |||
531 | 530 | ||
532 | /* Disconnect from the SPI framework */ | 531 | /* Disconnect from the SPI framework */ |
533 | spi_bitbang_stop(&dspi->bitbang); | 532 | spi_bitbang_stop(&dspi->bitbang); |
533 | clk_disable_unprepare(dspi->clk); | ||
534 | spi_master_put(dspi->bitbang.master); | 534 | spi_master_put(dspi->bitbang.master); |
535 | 535 | ||
536 | return 0; | 536 | return 0; |
@@ -547,5 +547,5 @@ static struct platform_driver fsl_dspi_driver = { | |||
547 | module_platform_driver(fsl_dspi_driver); | 547 | module_platform_driver(fsl_dspi_driver); |
548 | 548 | ||
549 | MODULE_DESCRIPTION("Freescale DSPI Controller Driver"); | 549 | MODULE_DESCRIPTION("Freescale DSPI Controller Driver"); |
550 | MODULE_LICENSE("GPL v2"); | 550 | MODULE_LICENSE("GPL"); |
551 | MODULE_ALIAS("platform:" DRIVER_NAME); | 551 | MODULE_ALIAS("platform:" DRIVER_NAME); |