diff options
Diffstat (limited to 'nuttx/arch/arm/src/sama5/sam_gmac.c')
-rw-r--r-- | nuttx/arch/arm/src/sama5/sam_gmac.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/nuttx/arch/arm/src/sama5/sam_gmac.c b/nuttx/arch/arm/src/sama5/sam_gmac.c index 62ed5c692..4451583ed 100644 --- a/nuttx/arch/arm/src/sama5/sam_gmac.c +++ b/nuttx/arch/arm/src/sama5/sam_gmac.c @@ -310,7 +310,7 @@ static int sam_addmac(struct net_driver_s *dev, const uint8_t *mac); static int sam_rmmac(struct net_driver_s *dev, const uint8_t *mac); #endif #ifdef CONFIG_NETDEV_PHY_IOCTL -static int sam_ioctl(struct net_driver_s *dev, int cmd, void *arg); +static int sam_ioctl(struct net_driver_s *dev, int cmd, long arg); #endif /* PHY Initialization */ @@ -1803,8 +1803,9 @@ static int sam_rmmac(struct net_driver_s *dev, const uint8_t *mac) ****************************************************************************/ #ifdef CONFIG_NETDEV_PHY_IOCTL -static int sam_ioctl(struct net_driver_s *dev, int cmd, void *arg) +static int sam_ioctl(struct net_driver_s *dev, int cmd, long arg) { + struct sam_emac_s *priv = (struct sam_emac_s *)dev->d_private; int ret; switch (cmd) |