summaryrefslogtreecommitdiffstats
path: root/atapromise.c
diff options
context:
space:
mode:
authorThomas Heijligen <thomas.heijligen@secunet.com>2022-09-14 13:22:10 +0200
committerFelix Singer <felixsinger@posteo.net>2022-09-27 00:36:11 +0000
commit3d7905178da44a8908ee3724de527e0af3d50704 (patch)
treec8f86e6ca0284ebb5099604d2245aee633f6d5ef /atapromise.c
parentbe0538f654935ea3986d5cc950bb4092a938111f (diff)
downloadflashrom-3d7905178da44a8908ee3724de527e0af3d50704.tar.gz
flashrom-3d7905178da44a8908ee3724de527e0af3d50704.tar.bz2
flashrom-3d7905178da44a8908ee3724de527e0af3d50704.zip
atapromise.c: Use fallback_map instead of own identical implementation
Change-Id: Iea16d42015bdbe838364cc65cff895d9edaf03a7 Signed-off-by: Thomas Heijligen <thomas.heijligen@secunet.com> Reviewed-on: https://review.coreboot.org/c/flashrom/+/67655 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Jonathon Hall <jonathon.hall@puri.sm> Reviewed-by: Edward O'Callaghan <quasisec@chromium.org> Reviewed-by: Felix Singer <felixsinger@posteo.net>
Diffstat (limited to 'atapromise.c')
-rw-r--r--atapromise.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/atapromise.c b/atapromise.c
index 63463f572..d4a3aa84e 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,
};