diff options
Diffstat (limited to 'mstarddc_spi.c')
-rw-r--r-- | mstarddc_spi.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/mstarddc_spi.c b/mstarddc_spi.c index a7816a4b..8e2d5a86 100644 --- a/mstarddc_spi.c +++ b/mstarddc_spi.c @@ -147,6 +147,7 @@ static const struct spi_master spi_master_mstarddc = { .read = default_spi_read, .write_256 = default_spi_write_256, .write_aai = default_spi_write_aai, + .shutdown = mstarddc_spi_shutdown, }; /* Returns 0 upon success, a negative number upon errors. */ @@ -240,9 +241,6 @@ static int mstarddc_spi_init(void) mstarddc_data->addr = mstarddc_addr; mstarddc_data->doreset = mstarddc_doreset; - // Register shutdown function - register_shutdown(mstarddc_spi_shutdown, mstarddc_data); - // Register programmer register_spi_master(&spi_master_mstarddc, mstarddc_data); out: |