diff options
Diffstat (limited to 'src/soc/cavium/cn81xx/soc.c')
-rw-r--r-- | src/soc/cavium/cn81xx/soc.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/soc/cavium/cn81xx/soc.c b/src/soc/cavium/cn81xx/soc.c index 81c9a648e5..e0caea6cd7 100644 --- a/src/soc/cavium/cn81xx/soc.c +++ b/src/soc/cavium/cn81xx/soc.c @@ -386,8 +386,7 @@ static struct device_operations soc_ops = { static void enable_soc_dev(struct device *dev) { - if (dev->path.type == DEVICE_PATH_DOMAIN && - dev->path.domain.domain == 0) { + if (is_domain0(dev)) { dev->ops = &pci_domain_ops_ecam0; } else if (dev->path.type == DEVICE_PATH_CPU_CLUSTER) { dev->ops = &soc_ops; |