--- zzzz-none-000/linux-3.10.107/drivers/misc/eeprom/max6875.c 2017-06-27 09:49:32.000000000 +0000 +++ scorpion-7490-727/linux-3.10.107/drivers/misc/eeprom/max6875.c 2021-02-04 17:41:59.000000000 +0000 @@ -27,7 +27,6 @@ */ #include -#include #include #include #include @@ -115,12 +114,6 @@ struct max6875_data *data = i2c_get_clientdata(client); int slice, max_slice; - if (off > USER_EEPROM_SIZE) - return 0; - - if (off + count > USER_EEPROM_SIZE) - count = USER_EEPROM_SIZE - off; - /* refresh slices which contain requested bytes */ max_slice = (off + count - 1) >> SLICE_BITS; for (slice = (off >> SLICE_BITS); slice <= max_slice; slice++) @@ -198,6 +191,7 @@ { "max6875", 0 }, { } }; +MODULE_DEVICE_TABLE(i2c, max6875_id); static struct i2c_driver max6875_driver = { .driver = {