]> git.karo-electronics.de Git - karo-tx-linux.git/commit
hwmon: (i5k_amb) Replace BUG with WARN
authorGuenter Roeck <guenter.roeck@ericsson.com>
Tue, 16 Aug 2011 15:39:26 +0000 (08:39 -0700)
committerGuenter Roeck <guenter.roeck@ericsson.com>
Mon, 22 Aug 2011 21:04:05 +0000 (14:04 -0700)
commit15954ded813bba26157e20ff1a85d0996c0e1161
treeae130375cfc9e5e96cea26d040ab24ee91d1f3c4
parent858a914324c7786f483661e3a89bc8fbe50f1b9d
hwmon: (i5k_amb) Replace BUG with WARN

Executing BUG as a result of an internal driver error seems to be a bit harsh.
Replace it with WARN and return -ENODEV if the condition is seen.

This also resolves the following compile warning seen with some random
configurations.

drivers/hwmon/i5k_amb.c: In function 'i5k_channel_pci_id':
drivers/hwmon/i5k_amb.c:492: warning: control reaches end of non-void function

Signed-off-by: Guenter Roeck <guenter.roeck@ericsson.com>
Acked-by: Darrick J. Wong <djwong@us.ibm.com>
drivers/hwmon/i5k_amb.c