]> git.baikalelectronics.ru Git - kernel.git/commit
hwmon: (ltc2945) Don't crash the kernel unnecessarily
authorGuenter Roeck <linux@roeck-us.net>
Mon, 21 Apr 2014 17:38:08 +0000 (10:38 -0700)
committerGuenter Roeck <linux@roeck-us.net>
Thu, 24 Apr 2014 13:09:43 +0000 (06:09 -0700)
commit0550f3cfa964e2b3172bc64b04523e8d12d80cce
tree7ba34fb0c598fca268d0db9e9f3c3585e62c565f
parenta714f88f2f21530ea66bd2011c6e1f18a1655f39
hwmon: (ltc2945) Don't crash the kernel unnecessarily

An implementation error should not crash the kernel if it is avoidable.
Replace BUG() with WARN_ONCE().

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