From: H Hartley Sweeten Date: Mon, 29 Oct 2012 17:03:53 +0000 (-0700) Subject: staging: comedi: rtd520: convert driver to attach_pci X-Git-Tag: omap-for-v3.8/fixes-for-merge-window-v4-signed~84^2~858 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=825ca08e9cca69e03fe056e6de8e2445616a2da8;p=pandora-kernel.git staging: comedi: rtd520: convert driver to attach_pci Convert this driver to use the comedi PCI auto config mechanism by adding an attach_pci callback. Since this driver requires no extra configuration options, and the attach callback is now optional, remove it. Use the found 'dev->board_name' for the resource name passed to comedi_pci_enable() and request_irq(). Since this driver no longer walks the pci bus to find the pci_dev, remove the pci_dev_put() in the detach. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed