| Index: it85spi.c
|
| diff --git a/it85spi.c b/it85spi.c
|
| index 2493c1f66cbd2364ce15326a397974a5c1221f3f..37a7e1ed6daa66bfe706ac947fbc78cb94e7ff1d 100644
|
| --- a/it85spi.c
|
| +++ b/it85spi.c
|
| @@ -79,6 +79,8 @@
|
| #define INDIRECT_WRITE(base, value) OUTB(value, (base) + 4)
|
| #endif /* LPC_IO */
|
|
|
| +void it85xx_shutdown(void *);
|
| +
|
| #ifdef LPC_IO
|
| unsigned int shm_io_base;
|
| #endif
|
| @@ -301,6 +303,7 @@ int it85xx_spi_common_init(void)
|
| /* Set this as spi controller. */
|
| spi_controller = SPI_CONTROLLER_IT85XX;
|
|
|
| + register_shutdown(it85xx_shutdown, NULL);
|
| return 0;
|
| }
|
|
|
| @@ -342,11 +345,10 @@ int it85xx_probe_spi_flash(const char *name)
|
| return ret;
|
| }
|
|
|
| -int it85xx_shutdown(void)
|
| +void it85xx_shutdown(void *data)
|
| {
|
| msg_pdbg("%s():%d\n", __func__, __LINE__);
|
| it85xx_exit_scratch_rom();
|
| - return 0;
|
| }
|
|
|
| /* According to ITE 8502 document, the procedure to follow mode is following:
|
|
|