diff options
author | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2012-09-25 08:37:05 -0400 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2012-09-25 08:37:05 -0400 |
commit | 8e5d0661b3948f3c5a143f32d192710375822af2 (patch) | |
tree | ca18920d3f7219f7ffb7ca2fa372b82558938006 /drivers/spi/spi-omap2-mcspi.c | |
parent | 39a6ac11df6579df0361922f05c43f0fac8daa37 (diff) | |
parent | 5698bd757d55b1bb87edd1a9744ab09c142abfc2 (diff) |
Merge tag 'v3.6-rc6' into spi-drivers
Linux 3.6-rc6
Conflicts:
drivers/spi/spi-omap2-mcspi.c
Diffstat (limited to 'drivers/spi/spi-omap2-mcspi.c')
-rw-r--r-- | drivers/spi/spi-omap2-mcspi.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/spi/spi-omap2-mcspi.c b/drivers/spi/spi-omap2-mcspi.c index 9926f2784bba..06684d995d3b 100644 --- a/drivers/spi/spi-omap2-mcspi.c +++ b/drivers/spi/spi-omap2-mcspi.c | |||
@@ -1260,18 +1260,16 @@ static int __devinit omap2_mcspi_probe(struct platform_device *pdev) | |||
1260 | 1260 | ||
1261 | status = spi_register_master(master); | 1261 | status = spi_register_master(master); |
1262 | if (status < 0) | 1262 | if (status < 0) |
1263 | goto err_spi_register; | 1263 | goto disable_pm; |
1264 | 1264 | ||
1265 | return status; | 1265 | return status; |
1266 | 1266 | ||
1267 | err_spi_register: | ||
1268 | spi_master_put(master); | ||
1269 | disable_pm: | 1267 | disable_pm: |
1270 | pm_runtime_disable(&pdev->dev); | 1268 | pm_runtime_disable(&pdev->dev); |
1271 | dma_chnl_free: | 1269 | dma_chnl_free: |
1272 | kfree(mcspi->dma_channels); | 1270 | kfree(mcspi->dma_channels); |
1273 | free_master: | 1271 | free_master: |
1274 | kfree(master); | 1272 | spi_master_put(master); |
1275 | return status; | 1273 | return status; |
1276 | } | 1274 | } |
1277 | 1275 | ||