diff options
author | Adam Jackson <ajax@redhat.com> | 2008-10-08 23:12:31 -0400 |
---|---|---|
committer | Adam Jackson <ajax@redhat.com> | 2008-11-24 23:40:02 -0500 |
commit | 51e105ccc3d0ac8c0fe74efd029ffbddb80b140e (patch) | |
tree | ea1e68d00df1103d0f6de96d7487061da45991b6 | |
parent | 599a0f3f1e3ae92676e3648471576c0001cfd9ae (diff) |
Remove xf86GetResourcesImplicitly
-rw-r--r-- | hw/xfree86/common/xf86Bus.c | 31 |
1 files changed, 4 insertions, 27 deletions
diff --git a/hw/xfree86/common/xf86Bus.c b/hw/xfree86/common/xf86Bus.c index 758560d14..dcc5c3eac 100644 --- a/hw/xfree86/common/xf86Bus.c +++ b/hw/xfree86/common/xf86Bus.c @@ -1439,24 +1439,6 @@ RemoveOverlaps(resPtr target, resPtr list, Bool pow2Alignment, Bool useEstimated * Resource registration */ -static resList -xf86GetResourcesImplicitly(int entityIndex) -{ - if (entityIndex >= xf86NumEntities) return NULL; - - switch (xf86Entities[entityIndex]->bus.type) { - case BUS_ISA: - case BUS_NONE: - case BUS_SBUS: - return NULL; - case BUS_PCI: - return NULL; - case BUS_last: - return NULL; - } - return NULL; -} - static void convertRange2Host(int entityIndex, resRange *pRange) { @@ -1487,8 +1469,7 @@ xf86ConvertListToHost(int entityIndex, resPtr list) /* * xf86RegisterResources() -- attempts to register listed resources. - * If list is NULL it tries to obtain resources implicitly. Function - * returns a resPtr listing all resources not successfully registered. + * Returns a resPtr listing all resources not successfully registered. */ _X_EXPORT resPtr @@ -1498,13 +1479,9 @@ xf86RegisterResources(int entityIndex, resList list, unsigned long access) resRange range; resList list_f = NULL; - if (!list) { - list = xf86GetResourcesImplicitly(entityIndex); - /* these resources have to be in host address space already */ - if (!list) return NULL; - list_f = list; - } - + if (!list) + return NULL; + while(list->type != ResEnd) { range = *list; |