From 3d7905178da44a8908ee3724de527e0af3d50704 Mon Sep 17 00:00:00 2001 From: Thomas Heijligen Date: Wed, 14 Sep 2022 13:22:10 +0200 Subject: atapromise.c: Use fallback_map instead of own identical implementation Change-Id: Iea16d42015bdbe838364cc65cff895d9edaf03a7 Signed-off-by: Thomas Heijligen Reviewed-on: https://review.coreboot.org/c/flashrom/+/67655 Tested-by: build bot (Jenkins) Reviewed-by: Jonathon Hall Reviewed-by: Edward O'Callaghan Reviewed-by: Felix Singer --- atapromise.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/atapromise.c b/atapromise.c index 63463f57..d4a3aa84 100644 --- a/atapromise.c +++ b/atapromise.c @@ -54,12 +54,6 @@ static const struct dev_entry ata_promise[] = { {0}, }; -static void *atapromise_map(const char *descr, uintptr_t phys_addr, size_t len) -{ - /* In case fallback_map ever returns something other than NULL. */ - return NULL; -} - static void atapromise_limit_chip(struct flashchip *chip, size_t rom_size) { unsigned int i, size; @@ -190,7 +184,7 @@ const struct programmer_entry programmer_atapromise = { .type = PCI, .devs.dev = ata_promise, .init = atapromise_init, - .map_flash_region = atapromise_map, + .map_flash_region = fallback_map, .unmap_flash_region = fallback_unmap, .delay = internal_delay, }; -- cgit v1.2.3