From: H Hartley Sweeten Date: Mon, 29 Jul 2013 21:05:00 +0000 (-0700) Subject: staging: comedi: das16: fail attach if board id is incorrect X-Git-Tag: v3.12-rc1~183^2~425 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b08c4015e6042113625d92f9e3e32bdaa652bf76;p=pandora-kernel.git staging: comedi: das16: fail attach if board id is incorrect This driver probes the board id during the attach to ensure that the user is attempting to attach to the correct board type. Currently an error message is output if the ids are not consistent but the attach continues anyway. Make the attach fail if the id bits do not match. Also, cleanup the printk messages and use a dev_err() only if the probe fails. Signed-off-by: H Hartley Sweeten Reviewed-by: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed