diff options
author | stefanct <stefanct@2b7e53f0-3cfb-0310-b3e9-8179ed1497e1> | 2014-08-31 00:09:21 +0000 |
---|---|---|
committer | stefanct <stefanct@2b7e53f0-3cfb-0310-b3e9-8179ed1497e1> | 2014-08-31 00:09:21 +0000 |
commit | 3141ec69d3847dbaf8f94d50ced287461726a58e (patch) | |
tree | 1ce5908e88a7d94970f7f9fdd6a935db044599c5 /internal.c | |
parent | e218311a53921ae44e7d23263c5f25b0e728e5bf (diff) | |
download | flashrom-3141ec69d3847dbaf8f94d50ced287461726a58e.tar.gz |
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 <stefan.tauner@alumni.tuwien.ac.at>
Acked-by: Stefan Tauner <stefan.tauner@alumni.tuwien.ac.at>
git-svn-id: https://code.coreboot.org/svn/flashrom/trunk@1848 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'internal.c')
-rw-r--r-- | internal.c | 7 |
1 files changed, 0 insertions, 7 deletions
@@ -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 |