提交 6e51c857 编写于 作者: S Sebastian Reichel 提交者: Dmitry Torokhov

Input: tsc2005 - use dev_err for error messages

Change some dev_dbg() invocations to dev_err() ones, because they
are supposed to output error messages.
Signed-off-by: NSebastian Reichel <sre@kernel.org>
Signed-off-by: NDmitry Torokhov <dmitry.torokhov@gmail.com>
上级 542ad4f8
...@@ -579,7 +579,7 @@ static int tsc2005_probe(struct spi_device *spi) ...@@ -579,7 +579,7 @@ static int tsc2005_probe(struct spi_device *spi)
int error; int error;
if (!pdata) { if (!pdata) {
dev_dbg(&spi->dev, "no platform data\n"); dev_err(&spi->dev, "no platform data\n");
return -ENODEV; return -ENODEV;
} }
...@@ -591,7 +591,7 @@ static int tsc2005_probe(struct spi_device *spi) ...@@ -591,7 +591,7 @@ static int tsc2005_probe(struct spi_device *spi)
max_p = pdata->ts_pressure_max ? : MAX_12BIT; max_p = pdata->ts_pressure_max ? : MAX_12BIT;
if (spi->irq <= 0) { if (spi->irq <= 0) {
dev_dbg(&spi->dev, "no irq\n"); dev_err(&spi->dev, "no irq\n");
return -ENODEV; return -ENODEV;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册