staging: comedi: adv_pci_dio: add the number of subdevices to the boardinfo
authorH Hartley Sweeten <hartleys@visionengravers.com>
Sat, 18 Aug 2012 01:20:34 +0000 (18:20 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 4 Sep 2012 18:20:39 +0000 (11:20 -0700)
commit4bf75257ff84a57d2e878f149514e4fcd23a93bd
tree445bcb7203b7cc99122bc0b5a70c408668bfb2a3
parent79d3a1ddce4e85fd01665dc283459ea3d387b464
staging: comedi: adv_pci_dio: add the number of subdevices to the boardinfo

Instead of calculating the number of subdevices in the 'attach'
simply add the number to the boardinfo.

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>
drivers/staging/comedi/drivers/adv_pci_dio.c