diff --git a/configs/photon/src/stm32_wdt.c b/configs/photon/src/stm32_wdt.c index af37881182e..cc1359909fa 100644 --- a/configs/photon/src/stm32_wdt.c +++ b/configs/photon/src/stm32_wdt.c @@ -137,8 +137,8 @@ int photon_watchdog_initialize(void) #ifdef CONFIG_PHOTON_IWDG wdinfo("Timeout = %d.\n", CONFIG_PHOTON_IWDG_TIMEOUT); - ret = ioctl(&filestruct, WDIOC_SETTIMEOUT, - (unsigned long)CONFIG_PHOTON_IWDG_TIMEOUT); + ret = file_ioctl(&filestruct, WDIOC_SETTIMEOUT, + (unsigned long)CONFIG_PHOTON_IWDG_TIMEOUT); #else # error "No watchdog configured" #endif diff --git a/drivers/bch/bchdev_unregister.c b/drivers/bch/bchdev_unregister.c index c9697d804a0..5efe1b20208 100644 --- a/drivers/bch/bchdev_unregister.c +++ b/drivers/bch/bchdev_unregister.c @@ -73,7 +73,7 @@ int bchdev_unregister(FAR const char *chardev) { FAR struct bchlib_s *bch; - FAR struct file *filestruct; + FAR struct file filestruct; int ret; /* Sanity check */