X-Git-Url: https://review.openocd.org/gitweb?p=openocd.git;a=blobdiff_plain;f=src%2Fflash%2Fnor%2Faducm360.c;h=f468c89a53efb2e48a60ed14e17a6f2d986b43b0;hp=8681a25af45a44b51867e495da8725c48488ad98;hb=a7479fa89def9d8b1854d629dfdaa0ba17132617;hpb=f19ac83152b54a204b8148815a538d868973e1e1 diff --git a/src/flash/nor/aducm360.c b/src/flash/nor/aducm360.c index 8681a25af4..f468c89a53 100644 --- a/src/flash/nor/aducm360.c +++ b/src/flash/nor/aducm360.c @@ -102,13 +102,6 @@ static int aducm360_build_sector_list(struct flash_bank *bank) return ERROR_OK; } -/* ----------------------------------------------------------------------- */ -static int aducm360_protect_check(struct flash_bank *bank) -{ - LOG_WARNING("aducm360_protect_check not implemented."); - return ERROR_OK; -} - /* ----------------------------------------------------------------------- */ static int aducm360_mass_erase(struct target *target) { @@ -194,13 +187,6 @@ static int aducm360_erase(struct flash_bank *bank, int first, int last) return res; } -/* ----------------------------------------------------------------------- */ -static int aducm360_protect(struct flash_bank *bank, int set, int first, int last) -{ - LOG_ERROR("aducm360_protect not implemented."); - return ERROR_FLASH_OPERATION_FAILED; -} - /* ----------------------------------------------------------------------- */ static int aducm360_write_block_sync( struct flash_bank *bank, @@ -568,15 +554,13 @@ static int aducm360_check_flash_completion(struct target *target, unsigned int t } /* ----------------------------------------------------------------------- */ -struct flash_driver aducm360_flash = { +const struct flash_driver aducm360_flash = { .name = "aducm360", .flash_bank_command = aducm360_flash_bank_command, .erase = aducm360_erase, - .protect = aducm360_protect, .write = aducm360_write, .read = default_flash_read, .probe = aducm360_probe, .auto_probe = aducm360_probe, .erase_check = default_flash_blank_check, - .protect_check = aducm360_protect_check, };