projects
/
profile
/
ivi
/
kernel-x86-ivi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
160a061
)
spi/qspi: cleanup pm_runtime error check.
author
Sourav Poddar
<sourav.poddar@ti.com>
Tue, 19 Nov 2013 13:07:15 +0000
(18:37 +0530)
committer
Mark Brown
<broonie@linaro.org>
Sun, 24 Nov 2013 14:15:10 +0000
(14:15 +0000)
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>
drivers/spi/spi-ti-qspi.c
patch
|
blob
|
history
diff --git
a/drivers/spi/spi-ti-qspi.c
b/drivers/spi/spi-ti-qspi.c
index
e147ed4
..
f3c3c3f
100644
(file)
--- a/
drivers/spi/spi-ti-qspi.c
+++ b/
drivers/spi/spi-ti-qspi.c
@@
-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;
}