mirror of
https://review.coreboot.org/flashrom.git
synced 2025-07-02 06:23:18 +02:00
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>
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user