summaryrefslogtreecommitdiffstats
path: root/pcilib/pci.c
diff options
context:
space:
mode:
authorzilio nicolas <nicolas.zilio@kit.edu>2015-09-04 12:52:07 +0200
committerzilio nicolas <nicolas.zilio@kit.edu>2015-09-04 12:52:07 +0200
commit57149189cb4e15ed38ee34d44450390955e56697 (patch)
treeba3e589b23b9295ca6fdc5b7e7f02037f47999c1 /pcilib/pci.c
parenta1e8741ac0d77ab721a413a283127352d80fb944 (diff)
downloadpcitool-57149189cb4e15ed38ee34d44450390955e56697.tar.gz
pcitool-57149189cb4e15ed38ee34d44450390955e56697.tar.bz2
pcitool-57149189cb4e15ed38ee34d44450390955e56697.tar.xz
pcitool-57149189cb4e15ed38ee34d44450390955e56697.zip
almost finished regarding suren remarks
Diffstat (limited to 'pcilib/pci.c')
-rw-r--r--pcilib/pci.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/pcilib/pci.c b/pcilib/pci.c
index 03b2623..8a0ee29 100644
--- a/pcilib/pci.c
+++ b/pcilib/pci.c
@@ -109,8 +109,6 @@ pcilib_t *pcilib_open(const char *device, const char *model) {
size_t i;
pcilib_t *ctx = malloc(sizeof(pcilib_t));
- xmlDocPtr* docs=NULL;
-
if (!model)
model = getenv("PCILIB_MODEL");
@@ -174,9 +172,7 @@ pcilib_t *pcilib_open(const char *device, const char *model) {
if (!ctx->model)
ctx->model = strdup(model?model:"pci");
- pcilib_init_xml(docs);
- pcilib_xml_initialize_banks(ctx,docs);
- pcilib_xml_initialize_registers(ctx,docs);
+ pcilib_init_xml(ctx);
ctx->model_info.registers = ctx->registers;
ctx->model_info.banks = ctx->banks;