diff options
Diffstat (limited to 'src/devices')
-rw-r--r-- | src/devices/device_util.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/devices/device_util.c b/src/devices/device_util.c index 5cf5eabffd..224c58ee64 100644 --- a/src/devices/device_util.c +++ b/src/devices/device_util.c @@ -230,7 +230,9 @@ const char *dev_path(device_t dev) const char *dev_name(device_t dev) { - if (dev->chip_ops && dev->chip_ops->name) + if (dev->name) + return dev->name; + else if (dev->chip_ops && dev->chip_ops->name) return dev->chip_ops->name; else return "unknown"; |