summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTiago Vignatti <tiago.vignatti@nokia.com>2009-08-26 11:14:03 +0300
committerTiago Vignatti <tiago.vignatti@nokia.com>2009-08-26 11:14:03 +0300
commite70767cb2e574f8544a04903eea3afee33345eea (patch)
treecd6f7493f994bfa2e22f49a841c1f5ceead65bdf
parentef8aca5da46155e9ea0d1227215921ad9ce59150 (diff)
Revert "vgaarb: fix pci_device_vgaarb_get_info() return value."vga-arbiter
This reverts commit ef8aca5da46155e9ea0d1227215921ad9ce59150.
-rw-r--r--src/common_vgaarb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common_vgaarb.c b/src/common_vgaarb.c
index b7ef021..a40b064 100644
--- a/src/common_vgaarb.c
+++ b/src/common_vgaarb.c
@@ -317,7 +317,7 @@ int pci_device_vgaarb_get_info(struct pci_device *dev, int *vga_count, int *rsrc
{
*vga_count = pci_sys->vga_count;
if (!dev)
- return -1;
+ return 0;
*rsrc_decodes = dev->vgaarb_rsrc;
return 0;