From 3141ec69d3847dbaf8f94d50ced287461726a58e Mon Sep 17 00:00:00 2001 From: stefanct 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(). Signed-off-by: Stefan Tauner Acked-by: Stefan Tauner git-svn-id: https://code.coreboot.org/svn/flashrom/trunk@1848 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1 --- internal.c | 7 ------- 1 file changed, 7 deletions(-) (limited to 'internal.c') diff --git a/internal.c b/internal.c index 54b2aa3..e646ca8 100644 --- a/internal.c +++ b/internal.c @@ -158,11 +158,6 @@ static const struct par_master par_master_internal = { enum chipbustype internal_buses_supported = BUS_NONE; -static int internal_shutdown(void *data) -{ - return 0; -} - int internal_init(void) { #if __FLASHROM_LITTLE_ENDIAN__ @@ -237,8 +232,6 @@ int internal_init(void) if (rget_io_perms()) return 1; - if (register_shutdown(internal_shutdown, NULL)) - return 1; /* Default to Parallel/LPC/FWH flash devices. If a known host controller * is found, the host controller init routine sets the -- cgit v1.2.1