This patch fixes a compilation error at s5j_sflash_init() when
CONFIG_MTD_PROGMEM is disabled, but CONFIG_S5J_SFLASH.
Change-Id: I173cd4a500b2817ed73bf441e38ebb65bff53e96
Signed-off-by: EunBong Song <eunb.song@samsung.com>
/****************************************************************************
* Public Functions
****************************************************************************/
-#ifdef CONFIG_MTD_PROGMEM
static void s5j_sflash_disable_wp(void)
{
unsigned int sfcon;
return getreg8(rRDSR);
}
+#ifdef CONFIG_MTD_PROGMEM
size_t up_progmem_getaddress(size_t page)
{
return CONFIG_S5J_FLASH_BASE + up_progmem_pagesize(page) * page;