diff --git a/arch/arm/src/s32k3xx/s32k3xx_flexcan.c b/arch/arm/src/s32k3xx/s32k3xx_flexcan.c index 8b169af637..acb289a9ad 100644 --- a/arch/arm/src/s32k3xx/s32k3xx_flexcan.c +++ b/arch/arm/src/s32k3xx/s32k3xx_flexcan.c @@ -1639,7 +1639,7 @@ static int s32k3xx_txavail(struct net_driver_s *dev) * ****************************************************************************/ -#ifdef CONFIG_NETDEV_CAN_BITRATE_IOCTL +#ifdef CONFIG_NETDEV_IOCTL static int s32k3xx_ioctl(struct net_driver_s *dev, int cmd, unsigned long arg) { @@ -1649,6 +1649,7 @@ static int s32k3xx_ioctl(struct net_driver_s *dev, int cmd, switch (cmd) { +#ifdef CONFIG_NETDEV_CAN_BITRATE_IOCTL case SIOCGCANBITRATE: /* Get bitrate from a CAN controller */ { struct can_ioctl_data_s *req = @@ -1713,6 +1714,7 @@ static int s32k3xx_ioctl(struct net_driver_s *dev, int cmd, } } break; +#endif default: ret = -ENOTTY;