mirror of
https://github.com/torvalds/linux.git
synced 2026-06-07 14:04:54 +02:00
drivers: rkflash: fix build error
fix build without nand support. Change-Id: I9a5a2d63b335c42bcff99853b790796dd35355de Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
This commit is contained in:
parent
8d4a22b562
commit
aa21cdfe5c
|
|
@ -229,12 +229,15 @@ static unsigned int rk_partition_init(struct flash_part *part)
|
|||
|
||||
static int rkflash_proc_show(struct seq_file *m, void *v)
|
||||
{
|
||||
int real_size = 0;
|
||||
char *ftl_buf = kzalloc(4096, GFP_KERNEL);
|
||||
|
||||
#if IS_ENABLED(CONFIG_RK_NANDC_NAND) || IS_ENABLED(CONFIG_RK_SFC_NAND)
|
||||
int real_size = 0;
|
||||
|
||||
real_size = rknand_proc_ftlread(4096, ftl_buf);
|
||||
if (real_size > 0)
|
||||
seq_printf(m, "%s", ftl_buf);
|
||||
#endif
|
||||
seq_printf(m, "Totle Read %ld KB\n", totle_read_data >> 1);
|
||||
seq_printf(m, "Totle Write %ld KB\n", totle_write_data >> 1);
|
||||
seq_printf(m, "totle_write_count %ld\n", totle_write_count);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user