diff options
author | Thierry Vignaud <tv@mandriva.org> | 2008-05-14 13:19:56 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mandriva.org> | 2008-05-14 13:19:56 +0000 |
commit | a32b32bd9a2c443eb39d3572db6278940175280f (patch) | |
tree | 1fa40d78d0855c8b7a13ec7d749b294d02e047c4 | |
parent | 1db358bb9d8af98c1e0b0df13e3d2e42aa92c9a5 (diff) | |
download | ldetect-a32b32bd9a2c443eb39d3572db6278940175280f.tar ldetect-a32b32bd9a2c443eb39d3572db6278940175280f.tar.gz ldetect-a32b32bd9a2c443eb39d3572db6278940175280f.tar.bz2 ldetect-a32b32bd9a2c443eb39d3572db6278940175280f.tar.xz ldetect-a32b32bd9a2c443eb39d3572db6278940175280f.zip |
(pci_probe) adapt to pciutils-3.x API
-rw-r--r-- | Makefile | 2 | ||||
-rw-r--r-- | pci.c | 3 |
2 files changed, 2 insertions, 3 deletions
@@ -21,7 +21,7 @@ build: $(binaries) $(libraries) lspcidrake: lspcidrake.c libldetect.so $(lib_major).$(LIB_MINOR): $(lib_objs) - $(CC) -shared -z relro -Wl,-O1,-soname,$(lib_major) -o $@ $^ -lpci -lmodprobe -lz + $(CC) -shared -Wl,-z,relro -Wl,-O1,-soname,$(lib_major) -o $@ $^ -lpci -lmodprobe -lz $(lib_major): $(lib_major).$(LIB_MINOR) ln -sf $< $@ libldetect.so: $(lib_major) @@ -40,8 +40,7 @@ extern struct pciusb_entries pci_probe(void) { pacc = pci_alloc(); if (proc_pci_path) { - pacc->method_params[PCI_ACCESS_PROC_BUS_PCI] = proc_pci_path; - pacc->method = PCI_ACCESS_PROC_BUS_PCI; + pci_set_param(pacc, "proc.path", proc_pci_path); } |