diff options
author | Stefan Tauner <stefan.tauner@alumni.tuwien.ac.at> | 2014-08-31 00:09:21 +0000 |
---|---|---|
committer | Stefan Tauner <stefan.tauner@alumni.tuwien.ac.at> | 2014-08-31 00:09:21 +0000 |
commit | 2a1ed77f84e7cfc0a419c44edfbf41c78f211ac9 (patch) | |
tree | 1ce5908e88a7d94970f7f9fdd6a935db044599c5 /internal.c | |
parent | 4e32ec19b124a7431d1e3fd9f7e75196b7495a7e (diff) | |
download | flashrom-2a1ed77f84e7cfc0a419c44edfbf41c78f211ac9.tar.gz flashrom-2a1ed77f84e7cfc0a419c44edfbf41c78f211ac9.tar.bz2 flashrom-2a1ed77f84e7cfc0a419c44edfbf41c78f211ac9.zip |
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 <stefan.tauner@alumni.tuwien.ac.at>
Acked-by: Stefan Tauner <stefan.tauner@alumni.tuwien.ac.at>
Diffstat (limited to 'internal.c')
-rw-r--r-- | internal.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/internal.c b/internal.c index 54b2aa383..e646ca888 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 |