diff options
Diffstat (limited to 'drivers/ata/pata_marvell.c')
-rw-r--r-- | drivers/ata/pata_marvell.c | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/drivers/ata/pata_marvell.c b/drivers/ata/pata_marvell.c index 837b7fe77dc7..edbfe0dbbf78 100644 --- a/drivers/ata/pata_marvell.c +++ b/drivers/ata/pata_marvell.c | |||
@@ -107,10 +107,6 @@ static struct scsi_host_template marvell_sht = { | |||
107 | .slave_destroy = ata_scsi_slave_destroy, | 107 | .slave_destroy = ata_scsi_slave_destroy, |
108 | /* Use standard CHS mapping rules */ | 108 | /* Use standard CHS mapping rules */ |
109 | .bios_param = ata_std_bios_param, | 109 | .bios_param = ata_std_bios_param, |
110 | #ifdef CONFIG_PM | ||
111 | .resume = ata_scsi_device_resume, | ||
112 | .suspend = ata_scsi_device_suspend, | ||
113 | #endif | ||
114 | }; | 110 | }; |
115 | 111 | ||
116 | static const struct ata_port_operations marvell_ops = { | 112 | static const struct ata_port_operations marvell_ops = { |
@@ -165,7 +161,7 @@ static const struct ata_port_operations marvell_ops = { | |||
165 | 161 | ||
166 | static int marvell_init_one (struct pci_dev *pdev, const struct pci_device_id *id) | 162 | static int marvell_init_one (struct pci_dev *pdev, const struct pci_device_id *id) |
167 | { | 163 | { |
168 | static struct ata_port_info info = { | 164 | static const struct ata_port_info info = { |
169 | .sht = &marvell_sht, | 165 | .sht = &marvell_sht, |
170 | .flags = ATA_FLAG_SLAVE_POSS | ATA_FLAG_SRST, | 166 | .flags = ATA_FLAG_SLAVE_POSS | ATA_FLAG_SRST, |
171 | 167 | ||
@@ -175,7 +171,7 @@ static int marvell_init_one (struct pci_dev *pdev, const struct pci_device_id *i | |||
175 | 171 | ||
176 | .port_ops = &marvell_ops, | 172 | .port_ops = &marvell_ops, |
177 | }; | 173 | }; |
178 | static struct ata_port_info info_sata = { | 174 | static const struct ata_port_info info_sata = { |
179 | .sht = &marvell_sht, | 175 | .sht = &marvell_sht, |
180 | /* Slave possible as its magically mapped not real */ | 176 | /* Slave possible as its magically mapped not real */ |
181 | .flags = ATA_FLAG_SLAVE_POSS | ATA_FLAG_SRST, | 177 | .flags = ATA_FLAG_SLAVE_POSS | ATA_FLAG_SRST, |
@@ -186,13 +182,12 @@ static int marvell_init_one (struct pci_dev *pdev, const struct pci_device_id *i | |||
186 | 182 | ||
187 | .port_ops = &marvell_ops, | 183 | .port_ops = &marvell_ops, |
188 | }; | 184 | }; |
189 | struct ata_port_info *port_info[2] = { &info, &info_sata }; | 185 | const struct ata_port_info *ppi[] = { &info, &info_sata }; |
190 | int n_port = 2; | ||
191 | 186 | ||
192 | if (pdev->device == 0x6101) | 187 | if (pdev->device == 0x6101) |
193 | n_port = 1; | 188 | ppi[1] = &ata_dummy_port_info; |
194 | 189 | ||
195 | return ata_pci_init_one(pdev, port_info, n_port); | 190 | return ata_pci_init_one(pdev, ppi); |
196 | } | 191 | } |
197 | 192 | ||
198 | static const struct pci_device_id marvell_pci_tbl[] = { | 193 | static const struct pci_device_id marvell_pci_tbl[] = { |