2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-22 20:23:57 +08:00

staging: IIO: IMU: ADIS16400: Fix product ID check, skip embedded revision 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>
This commit is contained in:
Michael Hennerich 2011-03-21 16:44:39 +01:00 committed by Greg Kroah-Hartman
parent 0fea4d6192
commit 4d1ea4a67e

View File

@ -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",