diff options
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/staging/iio/imu/adis16400_core.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/staging/iio/imu/adis16400_core.c b/drivers/staging/iio/imu/adis16400_core.c index 0d8df6282b21..540bde69cc3b 100644 --- a/drivers/staging/iio/imu/adis16400_core.c +++ b/drivers/staging/iio/imu/adis16400_core.c | |||
@@ -6,6 +6,7 @@ | |||
6 | * | 6 | * |
7 | * Copyright (c) 2009 Manuel Stahl <manuel.stahl@iis.fraunhofer.de> | 7 | * Copyright (c) 2009 Manuel Stahl <manuel.stahl@iis.fraunhofer.de> |
8 | * Copyright (c) 2007 Jonathan Cameron <jic23@cam.ac.uk> | 8 | * Copyright (c) 2007 Jonathan Cameron <jic23@cam.ac.uk> |
9 | * Copyright (c) 2011 Analog Devices Inc. | ||
9 | * | 10 | * |
10 | * This program is free software; you can redistribute it and/or modify | 11 | * This program is free software; you can redistribute it and/or modify |
11 | * it under the terms of the GNU General Public License version 2 as | 12 | * it under the terms of the GNU General Public License version 2 as |
@@ -472,7 +473,8 @@ static int adis16400_initial_setup(struct adis16400_state *st) | |||
472 | if ((prod_id & 0xF000) != ADIS16400_PRODUCT_ID_DEFAULT) | 473 | if ((prod_id & 0xF000) != ADIS16400_PRODUCT_ID_DEFAULT) |
473 | dev_warn(dev, "unknown product id"); | 474 | dev_warn(dev, "unknown product id"); |
474 | 475 | ||
475 | printk(KERN_INFO DRIVER_NAME ": prod_id 0x%04x at CS%d (irq %d)\n", | 476 | |
477 | dev_info(dev, ": prod_id 0x%04x at CS%d (irq %d)\n", | ||
476 | prod_id, st->us->chip_select, st->us->irq); | 478 | prod_id, st->us->chip_select, st->us->irq); |
477 | 479 | ||
478 | /* use high spi speed if possible */ | 480 | /* use high spi speed if possible */ |
@@ -645,7 +647,7 @@ static int __devinit adis16400_probe(struct spi_device *spi) | |||
645 | 647 | ||
646 | ret = iio_ring_buffer_register(st->indio_dev->ring, 0); | 648 | ret = iio_ring_buffer_register(st->indio_dev->ring, 0); |
647 | if (ret) { | 649 | if (ret) { |
648 | printk(KERN_ERR "failed to initialize the ring\n"); | 650 | dev_err(&spi->dev, "failed to initialize the ring\n"); |
649 | goto error_unreg_ring_funcs; | 651 | goto error_unreg_ring_funcs; |
650 | } | 652 | } |
651 | 653 | ||