]> git.openfabrics.org - ~shefty/rdma-dev.git/commit
staging: comedi: addi_apci_1564: set board_ptr before calling addi_auto_attach()
authorH Hartley Sweeten <hsweeten@visionengravers.com>
Tue, 5 Mar 2013 17:24:21 +0000 (10:24 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 11 Mar 2013 17:05:22 +0000 (10:05 -0700)
commit43ba213156dba3afb4c8367da16c3d90aa87d2f8
treeecad44e48a05cc23c8f2f2e10672d42e08a65ad3
parenta80cb91aa63412385e8e8088d33cf364308b25e0
staging: comedi: addi_apci_1564: set board_ptr before calling addi_auto_attach()

This driver only supports a single PCI device. If we set the
dev->board_ptr before calling addi_auto_attach() we remove
the need for the common code to search for the boardinfo.

Since the search is not done we can remove the unnecessary
board information from the comedi_driver.

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/addi_apci_1564.c