Skip to content

Commit

Permalink
staging: IIO: IMU: ADIS16400: Fix product ID check, skip embedded rev…
Browse files Browse the repository at this point in the history
…ision number

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>
  • Loading branch information
Michael Hennerich authored and Greg Kroah-Hartman committed Apr 5, 2011
1 parent 0fea4d6 commit 4d1ea4a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/staging/iio/imu/adis16400_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -469,7 +469,7 @@ static int adis16400_initial_setup(struct adis16400_state *st)
if (ret)
goto err_ret;

if (prod_id != ADIS16400_PRODUCT_ID_DEFAULT)
if ((prod_id & 0xF000) != ADIS16400_PRODUCT_ID_DEFAULT)
dev_warn(dev, "unknown product id");

printk(KERN_INFO DRIVER_NAME ": prod_id 0x%04x at CS%d (irq %d)\n",
Expand Down

0 comments on commit 4d1ea4a

Please sign in to comment.