[R550 driver support] add fallback logic to device.Exists(name)

Signed-off-by: Tariq Ibrahim <tibrahim@nvidia.com>
This commit is contained in:
Tariq Ibrahim 2024-02-27 11:47:56 -08:00
parent e64b723b71
commit f80f4c485d

View File

@ -67,7 +67,7 @@ func (d devices) Count() int {
// Exists checks if a Device with a given name exists or not // Exists checks if a Device with a given name exists or not
func (d devices) Exists(name Name) bool { func (d devices) Exists(name Name) bool {
_, exists := d[name] _, exists := d.Get(name)
return exists return exists
} }