Chromium Code Reviews| Index: internal.c |
| diff --git a/internal.c b/internal.c |
| index 2f70f8512ee4676f5d9c1a98736dd8c1ea149ae7..7b739743eb5d7652c9cfb92f398cc19f137e7df9 100644 |
| --- a/internal.c |
| +++ b/internal.c |
| @@ -238,6 +238,7 @@ int internal_init(void) |
| probe_target_bus_later = 1; |
| } |
| + register_shutdown(internal_shutdown, NULL); |
|
Louis
2011/04/26 10:06:06
remove this if we restore the shutdown function in
dhendrix
2011/04/27 02:08:06
The idea is to no longer rely on programmer_table[
|
| get_io_perms(); |
| #if defined(__i386__) || defined(__x86_64__) |
| @@ -371,20 +372,9 @@ int internal_init(void) |
| #endif |
| } |
| -int internal_shutdown(void) |
| +void internal_shutdown(void *data) |
| { |
| release_io_perms(); |
| - |
| -#if defined(__i386__) || defined(__x86_64__) |
| - if (target_bus == CHIP_BUSTYPE_LPC || |
| - target_bus == CHIP_BUSTYPE_FWH) { |
| - it85xx_shutdown(); |
| - wpce775x_shutdown(); |
| - mec1308_shutdown(); |
| - } |
| -#endif |
| - |
| - return 0; |
| } |
| #endif |