From 43ceca1109fa50831ec413903441e52a28fc70ee Mon Sep 17 00:00:00 2001 From: DerTeufel Date: Mon, 19 Oct 2015 18:51:35 +0200 Subject: mlog_logger.c: fix build after removing zram->init_done struct --- drivers/misc/mediatek/mlog/mlog_logger.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/misc/mediatek/mlog/mlog_logger.c b/drivers/misc/mediatek/mlog/mlog_logger.c index 40596c762..af0a87e31 100644 --- a/drivers/misc/mediatek/mlog/mlog_logger.c +++ b/drivers/misc/mediatek/mlog/mlog_logger.c @@ -364,7 +364,7 @@ static void mlog_meminfo(void) mlock = P2K(global_page_state(NR_MLOCK)); #if defined(CONFIG_ZRAM) & defined(CONFIG_ZSMALLOC) - zram = (zram_devices && zram_devices->init_done && zram_devices->meta) ? + zram = (zram_devices && zram_devices->meta) ? B2K(zs_get_total_size_bytes(zram_devices->meta->mem_pool)) : 0; #else zram = 0; -- cgit v1.2.3