From 2a1ed77f84e7cfc0a419c44edfbf41c78f211ac9 Mon Sep 17 00:00:00 2001 From: Stefan Tauner Date: Sun, 31 Aug 2014 00:09:21 +0000 Subject: Introduce generic shutdown_free() and remove redundant internal_shutdown() The former will be useful in cases where cleanup equals a simple call to free(). Corresponding to flashrom svn r1848. Signed-off-by: Stefan Tauner Acked-by: Stefan Tauner --- flash.h | 1 + 1 file changed, 1 insertion(+) (limited to 'flash.h') diff --git a/flash.h b/flash.h index a5d3a55..03b26e7 100644 --- a/flash.h +++ b/flash.h @@ -54,6 +54,7 @@ typedef uint32_t chipsize_t; /* Able to store the number of bytes of any support #define PRIuCHIPSIZE PRIu32 int register_shutdown(int (*function) (void *data), void *data); +int shutdown_free(void *data); void *programmer_map_flash_region(const char *descr, uintptr_t phys_addr, size_t len); void programmer_unmap_flash_region(void *virt_addr, size_t len); void programmer_delay(unsigned int usecs); -- cgit v1.1