From: Greg Thelen Date: Sun, 17 Apr 2011 15:20:32 +0000 (-0700) Subject: PCI: handle positive error codes X-Git-Tag: v3.0-rc1~326^2~17 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=34e3207205ef492451cc5c53694d4772a9728b9f;p=pandora-kernel.git PCI: handle positive error codes Callers expect pci_user_{read,write}_config_*() to indicate errors by returning negative values. Prior to this change, the indicated routines could return positive error codes (e.g. PCIBIOS_BAD_REGISTER_NUMBER) which callers would mistakenly interpret as success. This change converts any non-zero return from the mentioned routines into unambiguous negative value return codes. Signed-off-by: Greg Thelen Signed-off-by: Jesse Barnes --- Reading git-diff-tree failed