regulator: Fix the s5m8767a problem of the division by null
authorSangbeom Kim <sbkim73@samsung.com>
Wed, 13 Jun 2012 08:27:16 +0000 (17:27 +0900)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Sun, 17 Jun 2012 17:27:20 +0000 (18:27 +0100)
commit9d88fc0b3503e80ab1a5c9fb3b3f074302f44b33
tree0577e89eed0cf9558b8a48cbebc56e56239054bf
parent0bdc81e4e944781a2bcc971f9e3cf24ac7030939
regulator: Fix the s5m8767a problem of the division by null

If ramp_delay is 0, delay value can be divided by zero.
This patch can fix the problem.

Signed-off-by: Sangbeom Kim <sbkim73@samsung.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
drivers/regulator/s5m8767.c