jedec_ts: read device id from the correct register

Due to my braino / typo the driver was reading the Vendor ID register
twice.

MFC after:	3 days
This commit is contained in:
Andriy Gapon 2017-06-23 06:25:39 +00:00
parent 83cff1f8e5
commit 9823ed182c

View File

@ -114,7 +114,7 @@ ts_attach(device_t dev)
device_printf(dev, "failed to read Manufacturer ID\n");
return (ENXIO);
}
err = ts_readw_be(dev, 6, &devid);
err = ts_readw_be(dev, 7, &devid);
if (err != 0) {
device_printf(dev, "failed to read Device ID\n");
return (ENXIO);