diff options
Diffstat (limited to 'ni845x_spi.c')
-rw-r--r-- | ni845x_spi.c | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/ni845x_spi.c b/ni845x_spi.c index 215351067..87a1dd8d9 100644 --- a/ni845x_spi.c +++ b/ni845x_spi.c @@ -536,6 +536,7 @@ static const struct spi_master spi_programmer_ni845x = { .read = default_spi_read, .write_256 = default_spi_write_256, .write_aai = default_spi_write_aai, + .shutdown = ni845x_spi_shutdown, }; static int ni845x_spi_init(void) @@ -625,14 +626,7 @@ static int ni845x_spi_init(void) return 1; } - if (register_shutdown(ni845x_spi_shutdown, NULL)) { - ni845x_spi_shutdown(NULL); - return 1; - } - - register_spi_master(&spi_programmer_ni845x, NULL); - - return 0; + return register_spi_master(&spi_programmer_ni845x, NULL); } const struct programmer_entry programmer_ni845x_spi = { |