diff options
Diffstat (limited to 'drivers/hwmon/sis5595.c')
| -rw-r--r-- | drivers/hwmon/sis5595.c | 6 | 
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/hwmon/sis5595.c b/drivers/hwmon/sis5595.c index 1404e6319de..3532026e25d 100644 --- a/drivers/hwmon/sis5595.c +++ b/drivers/hwmon/sis5595.c @@ -6,7 +6,7 @@   *			     Kyösti Mälkki <kmalkki@cc.hut.fi>, and   *			     Mark D. Studebaker <mdsxyz123@yahoo.com>   * Ported to Linux 2.6 by Aurelien Jarno <aurelien@aurel32.net> with - * the help of Jean Delvare <khali@linux-fr.org> + * the help of Jean Delvare <jdelvare@suse.de>   *   * This program is free software; you can redistribute it and/or modify   * it under the terms of the GNU General Public License as published by @@ -141,6 +141,8 @@ static inline u8 FAN_TO_REG(long rpm, int div)  {  	if (rpm <= 0)  		return 255; +	if (rpm > 1350000) +		return 1;  	return clamp_val((1350000 + rpm * div / 2) / (rpm * div), 1, 254);  } @@ -752,7 +754,7 @@ static struct sis5595_data *sis5595_update_device(struct device *dev)  	return data;  } -static DEFINE_PCI_DEVICE_TABLE(sis5595_pci_ids) = { +static const struct pci_device_id sis5595_pci_ids[] = {  	{ PCI_DEVICE(PCI_VENDOR_ID_SI, PCI_DEVICE_ID_SI_503) },  	{ 0, }  };  | 
