Input: tsc2005 - use dev_err for error messages
authorSebastian Reichel <sre@kernel.org>
Sat, 26 Apr 2014 04:50:13 +0000 (21:50 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Wed, 14 May 2014 23:39:50 +0000 (16:39 -0700)
Change some dev_dbg() invocations to dev_err() ones, because they
are supposed to output error messages.

Signed-off-by: Sebastian Reichel <sre@kernel.org>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/touchscreen/tsc2005.c

index 550adcbbfc2321b3110bf6a62d2c87805c6cabec..520e673687ff6e9647b863fc97fce34a6a9e18be 100644 (file)
@@ -579,7 +579,7 @@ static int tsc2005_probe(struct spi_device *spi)
        int error;
 
        if (!pdata) {
-               dev_dbg(&spi->dev, "no platform data\n");
+               dev_err(&spi->dev, "no platform data\n");
                return -ENODEV;
        }
 
@@ -591,7 +591,7 @@ static int tsc2005_probe(struct spi_device *spi)
        max_p   = pdata->ts_pressure_max   ? : MAX_12BIT;
 
        if (spi->irq <= 0) {
-               dev_dbg(&spi->dev, "no irq\n");
+               dev_err(&spi->dev, "no irq\n");
                return -ENODEV;
        }