diff options
author | Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> | 2009-10-04 01:09:19 +0200 |
---|---|---|
committer | Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> | 2009-10-20 15:02:31 +0200 |
commit | c495fe0fcd4b6d31cd7383b592c3781d619c25fc (patch) | |
tree | f49289a7dde9bc4bce6a65fa50a03746c1160c27 /drivers | |
parent | 998f9ee2f373b17d67e50c6ff072ba3a8f5e53b2 (diff) | |
download | barebox-c495fe0fcd4b6d31cd7383b592c3781d619c25fc.tar.gz barebox-c495fe0fcd4b6d31cd7383b592c3781d619c25fc.tar.xz |
cfi new: fix new disabling buffer support
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/nor/cfi_flash_amd.c | 2 | ||||
-rw-r--r-- | drivers/nor/cfi_flash_intel.c | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/drivers/nor/cfi_flash_amd.c b/drivers/nor/cfi_flash_amd.c index 05274c3b8a..b92836b059 100644 --- a/drivers/nor/cfi_flash_amd.c +++ b/drivers/nor/cfi_flash_amd.c @@ -137,6 +137,8 @@ static int amd_flash_write_cfibuffer (flash_info_t * info, ulong dest, const uch "buffer write"); return retcode; } +#else +#define amd_flash_write_cfibuffer NULL #endif /* CONFIG_CFI_BUFFER_WRITE */ struct cfi_cmd_set cfi_cmd_set_amd = { diff --git a/drivers/nor/cfi_flash_intel.c b/drivers/nor/cfi_flash_intel.c index a0a88851b7..4c3e4ca156 100644 --- a/drivers/nor/cfi_flash_intel.c +++ b/drivers/nor/cfi_flash_intel.c @@ -130,6 +130,8 @@ static int intel_flash_write_cfibuffer (flash_info_t * info, ulong dest, const u } return retcode; } +#else +#define intel_flash_write_cfibuffer NULL #endif /* CONFIG_CFI_BUFFER_WRITE */ static int intel_flash_status_check (flash_info_t * info, flash_sect_t sector, |