summaryrefslogtreecommitdiff
path: root/sb600spi.c
diff options
context:
space:
mode:
Diffstat (limited to 'sb600spi.c')
-rw-r--r--sb600spi.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sb600spi.c b/sb600spi.c
index 5c654754..fe7920fb 100644
--- a/sb600spi.c
+++ b/sb600spi.c
@@ -589,6 +589,7 @@ static const struct spi_master spi_master_sb600 = {
.read = default_spi_read,
.write_256 = default_spi_write_256,
.write_aai = default_spi_write_aai,
+ .shutdown = sb600spi_shutdown,
};
static const struct spi_master spi_master_yangtze = {
@@ -599,6 +600,7 @@ static const struct spi_master spi_master_yangtze = {
.read = default_spi_read,
.write_256 = default_spi_write_256,
.write_aai = default_spi_write_aai,
+ .shutdown = sb600spi_shutdown,
};
static const struct spi_master spi_master_promontory = {
@@ -609,6 +611,7 @@ static const struct spi_master spi_master_promontory = {
.read = promontory_read_memmapped,
.write_256 = default_spi_write_256,
.write_aai = default_spi_write_aai,
+ .shutdown = sb600spi_shutdown,
};
int sb600_probe_spi(struct pci_dev *dev)
@@ -786,8 +789,6 @@ int sb600_probe_spi(struct pci_dev *dev)
data->flash = NULL;
data->spibar = sb600_spibar;
- register_shutdown(sb600spi_shutdown, data);
-
/* Starting with Yangtze the SPI controller got a different interface with a much bigger buffer. */
if (amd_gen < CHIPSET_YANGTZE)
register_spi_master(&spi_master_sb600, data);