diff options
author | Michael Hennerich <michael.hennerich@analog.com> | 2011-03-21 11:44:40 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2011-04-05 15:37:12 -0400 |
commit | 6a6ec6233403ecdad0c042276e4479ca23716b1c (patch) | |
tree | 78305fe4eb2386d41b05e75a9dcf1af72a4bf563 /drivers | |
parent | 4d1ea4a67ef4d8ba9462c1c8df84ab7c9176006b (diff) |
staging: IIO: IMU: ADIS16400: Avoid using printk facility directly
Signed-off-by: Michael Hennerich <michael.hennerich@analog.com>
Acked-by: Jonathan Cameron <jic23@cam.ac.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
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 | ||