diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2015-06-22 10:37:39 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2015-06-22 10:38:31 +0200 |
commit | 713285ca19f39e9a48598416ccab222105acf708 (patch) | |
tree | dddd4b2a46809b0417c5f7eee83987b8af653add /drivers/mtd/nor/cfi_flash.h | |
parent | 9746f02caed759f9ec0fcf4c9e8417d86af5a796 (diff) | |
download | barebox-713285ca19f39e9a48598416ccab222105acf708.tar.gz barebox-713285ca19f39e9a48598416ccab222105acf708.tar.xz |
mtd: cfi-flash: remove dead code
CFG_FLASH_PROTECTION is never defined, remove the code. Also
remove code inside #if 0.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'drivers/mtd/nor/cfi_flash.h')
-rw-r--r-- | drivers/mtd/nor/cfi_flash.h | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/drivers/mtd/nor/cfi_flash.h b/drivers/mtd/nor/cfi_flash.h index 6d975b94e2..e82eb28abe 100644 --- a/drivers/mtd/nor/cfi_flash.h +++ b/drivers/mtd/nor/cfi_flash.h @@ -355,12 +355,6 @@ extern void flash_protect(int flag, unsigned long from, unsigned long to, struct flash_info *info); extern int flash_write(char *, unsigned long, unsigned long); -#if defined(CFG_FLASH_PROTECTION) -extern int flash_real_protect(struct flash_info *info, long sector, int prot); -extern void flash_read_user_serial(struct flash_info *info, void *buffer, int offset, int len); -extern void flash_read_factory_serial(struct flash_info *info, void *buffer, int offset, int len); -#endif /* CFG_FLASH_PROTECTION */ - /*----------------------------------------------------------------------- * Protection Flags for flash_protect(): */ |