[BACKPORT] S32K3XX FlexCAN kconfig fix to work in conjunction with EMAC ioctl
@@ -1642,7 +1642,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)
{
@@ -1652,6 +1652,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 =
@@ -1716,6 +1717,7 @@ static int s32k3xx_ioctl(struct net_driver_s *dev, int cmd,
}
}
break;
+#endif
default:
ret = -ENOTTY;
