From df8e4b38952cb3c386dbb1615a4f6fc86ff98570 Mon Sep 17 00:00:00 2001 From: "Mark M. Hoffman" Date: Tue, 6 Sep 2005 03:33:43 +0000 Subject: [PATCH] drop eeprom display when kernel is 2.6.x - partially resolves this: http://lists.lm-sensors.org/pipermail/lm-sensors/2005-August/013403.html git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3064 7894878c-1315-0410-8ee3-d5d059ff63e0 --- lib/proc.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/proc.c b/lib/proc.c index 693c887b..13f76eff 100644 --- a/lib/proc.c +++ b/lib/proc.c @@ -93,6 +93,10 @@ static int sensors_read_one_sysfs_chip(char *name, char *dirname, char *id) if (len >= 10 && !strcmp(x + len - 10, " subclient")) return 0; + /* also, ignore eeproms for all 2.6.x kernels */ + if (!strcmp(x, "eeprom")) + return 0; + /* Fill in the entry fields */ entry.name.prefix = strdup(x); if (entry.name.prefix == NULL)