]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit1edd828d8b4b0d06e9171027a2d9c1eb634c1339
tree2da7bc33a0b6f8fcdd43117d26d30bb479c2db2c
parentd850ae2dc0ecc6e770fd3d6f96cd0be29b6325f8
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