Message ID | 1275461429-4838-1-git-send-email-weber@corscience.de (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
diff --git a/drivers/input/touchscreen/ads7846.c b/drivers/input/touchscreen/ads7846.c index 634f6f6..9ba7d2e 100644 --- a/drivers/input/touchscreen/ads7846.c +++ b/drivers/input/touchscreen/ads7846.c @@ -885,7 +885,7 @@ static int __devinit ads7846_probe(struct spi_device *spi) struct spi_message *m; struct spi_transfer *x; int vref; - int err; + long err; if (!spi->irq) { dev_dbg(&spi->dev, "no IRQ?\n"); @@ -1170,7 +1170,7 @@ static int __devinit ads7846_probe(struct spi_device *spi) err = regulator_enable(ts->reg); if (err) { - dev_err(&spi->dev, "unable to enable regulator: %d\n", err); + dev_err(&spi->dev, "unable to enable regulator: %ld\n", err); goto err_put_regulator; }