]> git.karo-electronics.de Git - linux-beck.git/commitdiff
staging:iio:adxrs450: Don't spam the bootlog
authorLars-Peter Clausen <lars@metafoo.de>
Thu, 31 Jan 2013 14:27:00 +0000 (14:27 +0000)
committerJonathan Cameron <jic23@kernel.org>
Sat, 2 Feb 2013 09:21:56 +0000 (09:21 +0000)
Don't spam the bootlog with the devices part id and serial number.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/staging/iio/gyro/adxrs450_core.c

index 96e52844377bacf9572339e8de826e3899861a0c..24b7a0f6f1fd39936a826d77a75a01bceb518dbf 100644 (file)
@@ -231,20 +231,6 @@ static int adxrs450_initial_setup(struct iio_dev *indio_dev)
                dev_err(&st->us->dev, "The device is not in normal status!\n");
                return -EINVAL;
        }
-       ret = adxrs450_spi_read_reg_16(indio_dev, ADXRS450_PID1, &data);
-       if (ret)
-               return ret;
-       dev_info(&st->us->dev, "The Part ID is 0x%x\n", data);
-
-       ret = adxrs450_spi_read_reg_16(indio_dev, ADXRS450_SNL, &data);
-       if (ret)
-               return ret;
-       t = data;
-       ret = adxrs450_spi_read_reg_16(indio_dev, ADXRS450_SNH, &data);
-       if (ret)
-               return ret;
-       t |= data << 16;
-       dev_info(&st->us->dev, "The Serial Number is 0x%x\n", t);
 
        return 0;
 }