Fix subsystem lookup for older HAL releases

This commit is contained in:
Daniel P. Berrange 2009-03-16 10:56:01 +00:00
parent 2dedb34a91
commit 35625e5aa8
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,8 @@
Mon Mar 16 10:55:00 GMT 2009 Daniel P. Berrange <berrange@redhat.com>
Fix subsystem lookup for older HAL releases
* src/node_device_hal.c: Check for linux.subsystem property
Mon Mar 16 10:45:00 GMT 2009 Daniel P. Berrange <berrange@redhat.com>
Add ac97 to test case & RNG schema (Pritesh Kothari)

View File

@ -357,7 +357,8 @@ static int gather_capabilities(LibHalContext *ctx, const char *udi,
goto failure;
}
if (get_str_prop(ctx, udi, "info.subsystem", &bus_name) == 0) {
if (get_str_prop(ctx, udi, "info.subsystem", &bus_name) == 0 ||
get_str_prop(ctx, udi, "linux.subsystem", &bus_name) == 0) {
rv = gather_capability(ctx, udi, bus_name, &caps);
if (rv != 0)
goto failure;