Mailinglist Archive: radeonhd (427 mails)
| < Previous | Next > |
[radeonhd] [PATCH] utils/conntest/rhd_dump.c: Call `pci_device_enable' when using libpciaccess.
- From: Florian Forster <radeonhd@xxxxxxxxxxxxxxxxxxx>
- Date: Fri, 1 May 2009 14:13:48 +0200
- Message-id: <1241180028-23316-1-git-send-email-radeonhd@xxxxxxxxxxxxxxxxxxx>
From: Florian Forster <octo@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>
The variable `enable_device' is only declared when libpciaccess is used,
but only read if libpciaccess is *not* available.
I have to admit I have *no idea* what `pci_device_enable' does, but from
the rest of the 9ad3554c commit I guess this is what was intended.
Signed-off-by: Florian Forster <octo@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>
---
utils/conntest/rhd_dump.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/utils/conntest/rhd_dump.c b/utils/conntest/rhd_dump.c
index ceb6ed4..6060bd3 100644
--- a/utils/conntest/rhd_dump.c
+++ b/utils/conntest/rhd_dump.c
@@ -539,6 +539,8 @@ main(int argc, char *argv[])
bus, dev, func);
return 1;
}
+ if (enable_device)
+ pci_device_enable(device);
#else
/* find our toy using pci */
device = DeviceLocate(pciAccess->devices, bus, dev, func);
@@ -547,8 +549,6 @@ main(int argc, char *argv[])
bus, dev, func);
return 1;
}
- if (enable_device)
- pci_device_enable(device);
#endif
rhdDevice = DeviceMatch(device);
--
1.6.2.1
--
To unsubscribe, e-mail: radeonhd+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: radeonhd+help@xxxxxxxxxxxx
The variable `enable_device' is only declared when libpciaccess is used,
but only read if libpciaccess is *not* available.
I have to admit I have *no idea* what `pci_device_enable' does, but from
the rest of the 9ad3554c commit I guess this is what was intended.
Signed-off-by: Florian Forster <octo@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>
---
utils/conntest/rhd_dump.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/utils/conntest/rhd_dump.c b/utils/conntest/rhd_dump.c
index ceb6ed4..6060bd3 100644
--- a/utils/conntest/rhd_dump.c
+++ b/utils/conntest/rhd_dump.c
@@ -539,6 +539,8 @@ main(int argc, char *argv[])
bus, dev, func);
return 1;
}
+ if (enable_device)
+ pci_device_enable(device);
#else
/* find our toy using pci */
device = DeviceLocate(pciAccess->devices, bus, dev, func);
@@ -547,8 +549,6 @@ main(int argc, char *argv[])
bus, dev, func);
return 1;
}
- if (enable_device)
- pci_device_enable(device);
#endif
rhdDevice = DeviceMatch(device);
--
1.6.2.1
--
To unsubscribe, e-mail: radeonhd+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: radeonhd+help@xxxxxxxxxxxx
| < Previous | Next > |