mirror of
https://review.coreboot.org/flashrom.git
synced 2025-04-27 23:22:37 +02:00
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>
This commit is contained in:
parent
be0538f654
commit
3d7905178d
@ -54,12 +54,6 @@ static const struct dev_entry ata_promise[] = {
|
|||||||
{0},
|
{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)
|
static void atapromise_limit_chip(struct flashchip *chip, size_t rom_size)
|
||||||
{
|
{
|
||||||
unsigned int i, size;
|
unsigned int i, size;
|
||||||
@ -190,7 +184,7 @@ const struct programmer_entry programmer_atapromise = {
|
|||||||
.type = PCI,
|
.type = PCI,
|
||||||
.devs.dev = ata_promise,
|
.devs.dev = ata_promise,
|
||||||
.init = atapromise_init,
|
.init = atapromise_init,
|
||||||
.map_flash_region = atapromise_map,
|
.map_flash_region = fallback_map,
|
||||||
.unmap_flash_region = fallback_unmap,
|
.unmap_flash_region = fallback_unmap,
|
||||||
.delay = internal_delay,
|
.delay = internal_delay,
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user