mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-05 18:41:58 +09:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user