PCI: aerdrv: introduce is_error_source
authorHidetoshi Seto <seto.hidetoshi@jp.fujitsu.com>
Thu, 15 Apr 2010 04:12:21 +0000 (13:12 +0900)
committerJesse Barnes <jbarnes@virtuousgeek.org>
Tue, 11 May 2010 19:01:14 +0000 (12:01 -0700)
commitc887275e6a5b857b72c798e4a6019160a860e2ef
tree8e8629859adcb9fcaacfd334f408d2949e1840b3
parent98ca3964fe8da0d742331af80952443af5cff464
PCI: aerdrv: introduce is_error_source

Take core part of find_device_iter() to make a new function
is_error_source() that checks given device has report an error
or not.

Signed-off-by: Hidetoshi Seto <seto.hidetoshi@jp.fujitsu.com>
Reviewed-by: Kenji Kaneshige <kaneshige.kenji@jp.fujitsu.com>
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
drivers/pci/pcie/aer/aerdrv_core.c