drivers: modem: hl7800: fix file open in fw update

File open function for firmware update
requires a flags parameter to be passed in.

Signed-off-by: Ryan Erickson <ryan.erickson@lairdconnect.com>
This commit is contained in:
Ryan Erickson 2020-09-29 09:43:51 -05:00 committed by Kumar Gala
commit e36fc53fa6

View file

@ -4652,7 +4652,7 @@ int32_t mdm_hl7800_update_fw(char *file_path)
goto err; goto err;
} }
ret = fs_open(&ictx.fw_update_file, file_path); ret = fs_open(&ictx.fw_update_file, file_path, FS_O_READ);
if (ret < 0) { if (ret < 0) {
LOG_ERR("%s open err: %d", log_strdup(file_path), ret); LOG_ERR("%s open err: %d", log_strdup(file_path), ret);
goto err; goto err;