From: H Hartley Sweeten Date: Thu, 19 Jul 2012 01:37:31 +0000 (-0700) Subject: staging: comedi: amplc_dio200: cleanup "find pci device" code X-Git-Tag: v3.6-rc1~100^2~116 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dd90576838a6f9eb51ffe11796073bdd733847df;p=pandora-kernel.git staging: comedi: amplc_dio200: cleanup "find pci device" code For aesthetic reasons, rename the function and pass the comedi_devconfig struct instead of pre-parsing out the bus/slot information. Use for_each_pci_dev() instead of open-coding the loop using pci_get_device(). Consolidate the dev_err messages when a pci device is not found. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed