Skip to content

Commit

Permalink
spi/qspi: cleanup pm_runtime error check.
Browse files Browse the repository at this point in the history
clean up pm_runtime error check in accordance with rest of the check in
the driver.

Signed-off-by: Sourav Poddar <sourav.poddar@ti.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
  • Loading branch information
Sourav Poddar authored and Mark Brown committed Nov 24, 2013
1 parent 160a061 commit 05b9667
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/spi/spi-ti-qspi.c
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ static int ti_qspi_setup(struct spi_device *spi)
qspi->spi_max_frequency, clk_div);

ret = pm_runtime_get_sync(qspi->dev);
if (ret) {
if (ret < 0) {
dev_err(qspi->dev, "pm_runtime_get_sync() failed\n");
return ret;
}
Expand Down

0 comments on commit 05b9667

Please sign in to comment.