media: rockchip: ispp: Disable dump_file on GKI

GKI do not export filp_open() and kernel_write().

Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: I14f0fe1d297632d19ab76c7ed63893b1670da545
This commit is contained in:
Tao Huang
2024-05-11 15:12:10 +08:00
parent 95c90bc02e
commit b1543b9a25

View File

@@ -1561,6 +1561,9 @@ static void dump_file(struct rkispp_device *dev, u32 restart_module)
char file[160], reg[48];
int i;
if (!IS_ENABLED(CONFIG_NO_GKI))
return;
snprintf(file, sizeof(file), "%s/%s%d.reg",
rkispp_dump_path, DRIVER_NAME, dev->dev_id);
fp = filp_open(file, O_RDWR | O_CREAT, 0644);