boards/z80/ez80/z20x/src/ez80_w25.c: CONFIG_BCH

This commit is contained in:
YAMAMOTO Takashi 2021-03-17 08:07:18 +09:00 committed by Xiang Xiao
parent 4494a2a501
commit 3c0c8e5c1f

View File

@ -92,6 +92,7 @@ int ez80_w25_initialize(int minor)
return ret;
}
#if defined(CONFIG_BCH)
/* Create a character device on the block device */
ret = bchdev_register(W25_BLOCKDEV, W25_CHARDEV, false);
@ -100,6 +101,7 @@ int ez80_w25_initialize(int minor)
ferr("ERROR: bchdev_register %s failed: %d\n", W25_CHARDEV, ret);
return ret;
}
#endif /* defined(CONFIG_BCH) */
#endif
return OK;