aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/ata
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/ata')
-rw-r--r--drivers/ata/pata_acpi.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/drivers/ata/pata_acpi.c b/drivers/ata/pata_acpi.c
index 91949d997555..54145edf50e8 100644
--- a/drivers/ata/pata_acpi.c
+++ b/drivers/ata/pata_acpi.c
@@ -195,8 +195,6 @@ static int pacpi_port_start(struct ata_port *ap)
195 struct pci_dev *pdev = to_pci_dev(ap->host->dev); 195 struct pci_dev *pdev = to_pci_dev(ap->host->dev);
196 struct pata_acpi *acpi; 196 struct pata_acpi *acpi;
197 197
198 int ret;
199
200 if (ap->acpi_handle == NULL) 198 if (ap->acpi_handle == NULL)
201 return -ENODEV; 199 return -ENODEV;
202 200
@@ -205,11 +203,7 @@ static int pacpi_port_start(struct ata_port *ap)
205 return -ENOMEM; 203 return -ENOMEM;
206 acpi->mask[0] = pacpi_discover_modes(ap, &ap->link.device[0]); 204 acpi->mask[0] = pacpi_discover_modes(ap, &ap->link.device[0]);
207 acpi->mask[1] = pacpi_discover_modes(ap, &ap->link.device[1]); 205 acpi->mask[1] = pacpi_discover_modes(ap, &ap->link.device[1]);
208 ret = ata_bmdma_port_start(ap); 206 return ata_bmdma_port_start(ap);
209 if (ret < 0)
210 return ret;
211
212 return ret;
213} 207}
214 208
215static struct scsi_host_template pacpi_sht = { 209static struct scsi_host_template pacpi_sht = {