PCI: use better error return values in aer_inject
authorAndrew Patterson <andrew.patterson@hp.com>
Mon, 12 Oct 2009 19:14:10 +0000 (13:14 -0600)
committerJesse Barnes <jbarnes@virtuousgeek.org>
Wed, 4 Nov 2009 21:06:38 +0000 (13:06 -0800)
commit1d0243559497b9cab00099c49a5ba3222cd6576f
tree36a0e7707770e5f97df28aa8ec0a92b7307d16aa
parentcc5d153a0ca794e3781ef34c76f32ad3e991b13d
PCI: use better error return values in aer_inject

Replaced some error return values in aer_inject. Use -ENODEV when we
can't find a device and -ENOTTY when the device does not support PCIe AER.

Acked-by: Huang Ying <ying.huang@intel.com>
Signed-off-by: Andrew Patterson <andrew.patterson@hp.com>
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
drivers/pci/pcie/aer/aer_inject.c