aboutsummaryrefslogtreecommitdiff
path: root/src/device/device_const.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/device/device_const.c')
-rw-r--r--src/device/device_const.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/device/device_const.c b/src/device/device_const.c
index a40d0b05b9..a63a629344 100644
--- a/src/device/device_const.c
+++ b/src/device/device_const.c
@@ -147,6 +147,10 @@ static int path_eq(const struct device_path *path1,
case DEVICE_PATH_GPIO:
equal = (path1->gpio.id == path2->gpio.id);
break;
+ case DEVICE_PATH_MDIO:
+ equal = (path1->mdio.addr == path2->mdio.addr);
+ break;
+
default:
printk(BIOS_ERR, "Unknown device type: %d\n", path1->type);
break;