hwmon: (pmbus) Don't unnecessarily crash the kernel
authorGuenter Roeck <linux@roeck-us.net>
Fri, 13 Sep 2013 17:31:38 +0000 (10:31 -0700)
committerGuenter Roeck <linux@roeck-us.net>
Sun, 13 Oct 2013 23:16:26 +0000 (16:16 -0700)
commitaf78fdf4a61827bed7f0fcbba8cc9ae393a3ad82
treef3a5e81d9e3b1d1ca063184d79209d5d51d0ac37
parentae02e7418ffa2ba5d927869ef9eab4c87549d8e9
hwmon: (pmbus) Don't unnecessarily crash the kernel

pmbus code currently crashes the kernel if it detects an internal
implementation error. While the detected condition suggests that there
is a bug in the code, it is hardly fatal. Therefore, it should not
trigger a crash. Replace BUG() with WARN().

Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/pmbus/pmbus_core.c