diff --git a/configs/sama5d4-ek/src/sam_ethernet.c b/configs/sama5d4-ek/src/sam_ethernet.c index 15cce4d2e1..c491ec9dd1 100644 --- a/configs/sama5d4-ek/src/sam_ethernet.c +++ b/configs/sama5d4-ek/src/sam_ethernet.c @@ -50,6 +50,7 @@ #include #include +#include #include #include @@ -262,7 +263,7 @@ int arch_phy_irq(FAR const char *intf, xcpt_t handler, void *arg, #endif { nerr("ERROR: Unsupported interface: %s\n", intf); - return NULL; + return -EINVAL; } /* Disable interrupts until we are done. This guarantees that the