From: Stefan Assmann Date: Wed, 31 Jul 2013 22:47:56 +0000 (-0600) Subject: PCI: Return -ENOSYS for SR-IOV operations on non-SR-IOV devices X-Git-Tag: v3.12-rc1~177^2~8^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=652d1100453a14bcc2b4514af79c701360836085;p=pandora-kernel.git PCI: Return -ENOSYS for SR-IOV operations on non-SR-IOV devices Change the return value to -ENOSYS if a device is not an SR-IOV PF. Previously we returned either -ENODEV or -EINVAL. Also have pci_sriov_get_totalvfs() return 0 in the error case to make the behaviour consistent whether CONFIG_PCI_IOV is enabled or not. Signed-off-by: Stefan Assmann Signed-off-by: Bjorn Helgaas --- Reading git-diff-tree failed