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)
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>

No differences found