summaryrefslogtreecommitdiffstats
path: root/freebsd/sys/dev/fdt/fdt_common.c
diff options
context:
space:
mode:
Diffstat (limited to 'freebsd/sys/dev/fdt/fdt_common.c')
-rw-r--r--freebsd/sys/dev/fdt/fdt_common.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/freebsd/sys/dev/fdt/fdt_common.c b/freebsd/sys/dev/fdt/fdt_common.c
index ff32dc0a..12979fda 100644
--- a/freebsd/sys/dev/fdt/fdt_common.c
+++ b/freebsd/sys/dev/fdt/fdt_common.c
@@ -401,6 +401,9 @@ fdt_get_phyaddr(phandle_t node, device_t dev, int *phy_addr, void **phy_sc)
*phy_addr = phy_reg;
+ if (phy_sc == NULL)
+ return (0);
+
/*
* Search for softc used to communicate with phy.
*/