From: H Hartley Sweeten Date: Mon, 21 Jan 2013 21:37:15 +0000 (-0700) Subject: staging: comedi: drivers (core): don't BUG_ON due to faulty drivers X-Git-Tag: v3.9-rc1~127^2~345 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=57b71c3e6f4c8b944e6721d89ccb566aee439f97;p=pandora-kernel.git staging: comedi: drivers (core): don't BUG_ON due to faulty drivers The postconfig for drivers that support async commands currently can BUG_ON if the subdevice was improperly configured by the driver. Change the BUG_ON so that a dev_warn() is output and the postconfig returns -EINVAL. This will prevent the comedi core from attaching to the faulty driver but does not BUG the kernel. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed