diff options
| -rw-r--r-- | drivers/spi/spi-topcliff-pch.c | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/drivers/spi/spi-topcliff-pch.c b/drivers/spi/spi-topcliff-pch.c index c54ee6674471..fcb991034c3d 100644 --- a/drivers/spi/spi-topcliff-pch.c +++ b/drivers/spi/spi-topcliff-pch.c | |||
| @@ -1268,11 +1268,8 @@ static void pch_spi_free_resources(struct pch_spi_board_data *board_dat, | |||
| 1268 | static int pch_spi_get_resources(struct pch_spi_board_data *board_dat, | 1268 | static int pch_spi_get_resources(struct pch_spi_board_data *board_dat, |
| 1269 | struct pch_spi_data *data) | 1269 | struct pch_spi_data *data) |
| 1270 | { | 1270 | { |
| 1271 | int retval = 0; | ||
| 1272 | |||
| 1273 | dev_dbg(&board_dat->pdev->dev, "%s ENTRY\n", __func__); | 1271 | dev_dbg(&board_dat->pdev->dev, "%s ENTRY\n", __func__); |
| 1274 | 1272 | ||
| 1275 | |||
| 1276 | /* reset PCH SPI h/w */ | 1273 | /* reset PCH SPI h/w */ |
| 1277 | pch_spi_reset(data->master); | 1274 | pch_spi_reset(data->master); |
| 1278 | dev_dbg(&board_dat->pdev->dev, | 1275 | dev_dbg(&board_dat->pdev->dev, |
| @@ -1280,15 +1277,7 @@ static int pch_spi_get_resources(struct pch_spi_board_data *board_dat, | |||
| 1280 | 1277 | ||
| 1281 | dev_dbg(&board_dat->pdev->dev, "%s data->irq_reg_sts=true\n", __func__); | 1278 | dev_dbg(&board_dat->pdev->dev, "%s data->irq_reg_sts=true\n", __func__); |
| 1282 | 1279 | ||
| 1283 | if (retval != 0) { | 1280 | return 0; |
| 1284 | dev_err(&board_dat->pdev->dev, | ||
| 1285 | "%s FAIL:invoking pch_spi_free_resources\n", __func__); | ||
| 1286 | pch_spi_free_resources(board_dat, data); | ||
| 1287 | } | ||
| 1288 | |||
| 1289 | dev_dbg(&board_dat->pdev->dev, "%s Return=%d\n", __func__, retval); | ||
| 1290 | |||
| 1291 | return retval; | ||
| 1292 | } | 1281 | } |
| 1293 | 1282 | ||
| 1294 | static void pch_free_dma_buf(struct pch_spi_board_data *board_dat, | 1283 | static void pch_free_dma_buf(struct pch_spi_board_data *board_dat, |
