From c4d3e5f0fd27e9d791a4f02d472fddd115de66e2 Mon Sep 17 00:00:00 2001 From: Jean Delvare Date: Wed, 29 Dec 2004 10:43:57 +0000 Subject: [PATCH] Discard the SPD-centric checksum module parameter. git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2814 7894878c-1315-0410-8ee3-d5d059ff63e0 --- kernel/chips/eeprom.c | 22 ---------------------- 1 file changed, 22 deletions(-) diff --git a/kernel/chips/eeprom.c b/kernel/chips/eeprom.c index f974bb70..3c3458a6 100644 --- a/kernel/chips/eeprom.c +++ b/kernel/chips/eeprom.c @@ -43,16 +43,6 @@ static unsigned int normal_isa_range[] = { SENSORS_ISA_END }; /* Insmod parameters */ SENSORS_INSMOD_1(eeprom); -static int checksum = 0; -MODULE_PARM(checksum, "i"); -MODULE_PARM_DESC(checksum, - "Only accept eeproms whose checksum is correct"); - - -/* Many constants specified below */ - -/* EEPROM registers */ -#define EEPROM_REG_CHECKSUM 0x3f /* possible natures */ #define NATURE_UNKNOWN 0 @@ -210,18 +200,6 @@ int eeprom_detect(struct i2c_adapter *adapter, int address, /* prevent 24RF08 corruption */ i2c_smbus_write_quick(new_client, 0); - /* Now, we do the remaining detection. It is not there, unless you force - the checksum to work out. */ - if (checksum) { - int cs = 0; - for (i = 0; i <= 0x3e; i++) - cs += i2c_smbus_read_byte_data(new_client, i); - cs &= 0xff; - if (i2c_smbus_read_byte_data - (new_client, EEPROM_REG_CHECKSUM) != cs) - goto ERROR1; - } - data->nature = NATURE_UNKNOWN; /* Detect the Vaio nature of EEPROMs. We use the "PCG-" prefix as the signature. */