Fix subsystem lookup for older HAL releases
This commit is contained in:
parent
2dedb34a91
commit
35625e5aa8
@ -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>
|
Mon Mar 16 10:45:00 GMT 2009 Daniel P. Berrange <berrange@redhat.com>
|
||||||
|
|
||||||
Add ac97 to test case & RNG schema (Pritesh Kothari)
|
Add ac97 to test case & RNG schema (Pritesh Kothari)
|
||||||
|
@ -357,7 +357,8 @@ static int gather_capabilities(LibHalContext *ctx, const char *udi,
|
|||||||
goto failure;
|
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);
|
rv = gather_capability(ctx, udi, bus_name, &caps);
|
||||||
if (rv != 0)
|
if (rv != 0)
|
||||||
goto failure;
|
goto failure;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user