commit | fd47579ba065f74bb5f833248ddcdfbb71feddcb | [log] [tgz] |
---|---|---|
author | H Hartley Sweeten <hsweeten@visionengravers.com> | Fri Apr 05 16:10:01 2013 -0700 |
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | Mon Apr 08 10:27:44 2013 -0700 |
tree | a31a92dc3b35f4e55e3ebe128161f8f112364bca | |
parent | ee422bb687e6dddd446d1d2c83345194f5201d2f [diff] |
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 <hsweeten@visionengravers.com> Cc: Ian Abbott <abbotti@mev.co.uk> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>