From: H Hartley Sweeten Date: Fri, 5 Apr 2013 23:10:01 +0000 (-0700) Subject: staging: comedi: serial2002: don't assume the number of subdevices to detach X-Git-Tag: omap-for-v3.10/dt-fixes-for-merge-window~137^2~260 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fd47579ba065f74bb5f833248ddcdfbb71feddcb;p=pandora-kernel.git staging: comedi: serial2002: don't assume the number of subdevices to detach Use the number of subdevices allocated (dev->n_subdevices) in the (*detach) instead of assuming a given number. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed