]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - drivers/input/touchscreen/ads7846.c
xfs: prevent swapext from operating on write-only files
[karo-tx-linux.git] / drivers / input / touchscreen / ads7846.c
index 532279cda0e4989de8aa45e3791f920d5c82c92b..a9fdf55c0238b14b4c6fa54fa257002f925d3daa 100644 (file)
@@ -1163,8 +1163,8 @@ static int __devinit ads7846_probe(struct spi_device *spi)
 
        ts->reg = regulator_get(&spi->dev, "vcc");
        if (IS_ERR(ts->reg)) {
-               dev_err(&spi->dev, "unable to get regulator: %ld\n",
-                       PTR_ERR(ts->reg));
+               err = PTR_ERR(ts->reg);
+               dev_err(&spi->dev, "unable to get regulator: %d\n", err);
                goto err_free_gpio;
        }