Skip to content

Commit

Permalink
atapromise.c: Use fallback_map instead of own identical implementation
Browse files Browse the repository at this point in the history
Change-Id: Iea16d42015bdbe838364cc65cff895d9edaf03a7
Signed-off-by: Thomas Heijligen <[email protected]>
Reviewed-on: https://review.coreboot.org/c/flashrom/+/67655
Tested-by: build bot (Jenkins) <[email protected]>
Reviewed-by: Jonathon Hall <[email protected]>
Reviewed-by: Edward O'Callaghan <[email protected]>
Reviewed-by: Felix Singer <[email protected]>
  • Loading branch information
heijligen authored and felixsinger committed Sep 27, 2022
1 parent be0538f commit 3d79051
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions atapromise.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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,
};

0 comments on commit 3d79051

Please sign in to comment.