hwmon: (s3c-hwmon) Ignore invalid divider settings
authorBen Dooks <ben@simtec.co.uk>
Mon, 16 Nov 2009 11:45:39 +0000 (12:45 +0100)
committerJean Delvare <khali@linux-fr.org>
Mon, 16 Nov 2009 11:45:39 +0000 (12:45 +0100)
commitbe4c23c93c4828d36ac9e1a88410618a61676426
tree2da7bc33a0b6f8fcdd43117d26d30bb479c2db2c
parenta9366e61b03f55a6e009e687ad10e706714c9907
hwmon: (s3c-hwmon) Ignore invalid divider settings

Avoid registering channels that have zero divider settings in them, as this
will only lead to kernel OOPS from divide-by-zero when the sysfs entry is
read.

Signed-off-by: Ben Dooks <ben@simtec.co.uk>
Signed-off-by: Jean Delvare <khali@linux-fr.org>
drivers/hwmon/s3c-hwmon.c