Skip to content

Commit 656ddf7

Browse files
author
Linus Torvalds
committed
Merge branch 'upstream-linus' of master.kernel.org:/pub/scm/linux/kernel/git/jgarzik/libata-dev
* 'upstream-linus' of master.kernel.org:/pub/scm/linux/kernel/git/jgarzik/libata-dev: [libata] Fix oops introduced in non-uniform port handling fix [PATCH] ata-piix: fixes kerneldoc error
2 parents 7e47202 + 29da9f6 commit 656ddf7

5 files changed

Lines changed: 14 additions & 13 deletions

File tree

‎drivers/ata/ata_piix.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -851,7 +851,7 @@ static void piix_set_piomode (struct ata_port *ap, struct ata_device *adev)
851851
* @ap: Port whose timings we are configuring
852852
* @adev: Drive in question
853853
* @udma: udma mode, 0 - 6
854-
* @is_ich: set if the chip is an ICH device
854+
* @isich: set if the chip is an ICH device
855855
*
856856
* Set UDMA mode for device, in host controller PCI config space.
857857
*

‎drivers/ata/sata_nv.c‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -484,7 +484,7 @@ static void nv_error_handler(struct ata_port *ap)
484484
static int nv_init_one (struct pci_dev *pdev, const struct pci_device_id *ent)
485485
{
486486
static int printed_version = 0;
487-
struct ata_port_info *ppi;
487+
struct ata_port_info *ppi[2];
488488
struct ata_probe_ent *probe_ent;
489489
int pci_dev_busy = 0;
490490
int rc;
@@ -520,8 +520,8 @@ static int nv_init_one (struct pci_dev *pdev, const struct pci_device_id *ent)
520520

521521
rc = -ENOMEM;
522522

523-
ppi = &nv_port_info[ent->driver_data];
524-
probe_ent = ata_pci_init_native_mode(pdev, &ppi, ATA_PORT_PRIMARY | ATA_PORT_SECONDARY);
523+
ppi[0] = ppi[1] = &nv_port_info[ent->driver_data];
524+
probe_ent = ata_pci_init_native_mode(pdev, ppi, ATA_PORT_PRIMARY | ATA_PORT_SECONDARY);
525525
if (!probe_ent)
526526
goto err_out_regions;
527527

‎drivers/ata/sata_sis.c‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ static int sis_init_one (struct pci_dev *pdev, const struct pci_device_id *ent)
240240
struct ata_probe_ent *probe_ent = NULL;
241241
int rc;
242242
u32 genctl;
243-
struct ata_port_info *ppi;
243+
struct ata_port_info *ppi[2];
244244
int pci_dev_busy = 0;
245245
u8 pmr;
246246
u8 port2_start;
@@ -265,8 +265,8 @@ static int sis_init_one (struct pci_dev *pdev, const struct pci_device_id *ent)
265265
if (rc)
266266
goto err_out_regions;
267267

268-
ppi = &sis_port_info;
269-
probe_ent = ata_pci_init_native_mode(pdev, &ppi, ATA_PORT_PRIMARY | ATA_PORT_SECONDARY);
268+
ppi[0] = ppi[1] = &sis_port_info;
269+
probe_ent = ata_pci_init_native_mode(pdev, ppi, ATA_PORT_PRIMARY | ATA_PORT_SECONDARY);
270270
if (!probe_ent) {
271271
rc = -ENOMEM;
272272
goto err_out_regions;

‎drivers/ata/sata_uli.c‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ static int uli_init_one (struct pci_dev *pdev, const struct pci_device_id *ent)
185185
{
186186
static int printed_version;
187187
struct ata_probe_ent *probe_ent;
188-
struct ata_port_info *ppi;
188+
struct ata_port_info *ppi[2];
189189
int rc;
190190
unsigned int board_idx = (unsigned int) ent->driver_data;
191191
int pci_dev_busy = 0;
@@ -211,8 +211,8 @@ static int uli_init_one (struct pci_dev *pdev, const struct pci_device_id *ent)
211211
if (rc)
212212
goto err_out_regions;
213213

214-
ppi = &uli_port_info;
215-
probe_ent = ata_pci_init_native_mode(pdev, &ppi, ATA_PORT_PRIMARY | ATA_PORT_SECONDARY);
214+
ppi[0] = ppi[1] = &uli_port_info;
215+
probe_ent = ata_pci_init_native_mode(pdev, ppi, ATA_PORT_PRIMARY | ATA_PORT_SECONDARY);
216216
if (!probe_ent) {
217217
rc = -ENOMEM;
218218
goto err_out_regions;

‎drivers/ata/sata_via.c‎

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -318,9 +318,10 @@ static void vt6421_init_addrs(struct ata_probe_ent *probe_ent,
318318
static struct ata_probe_ent *vt6420_init_probe_ent(struct pci_dev *pdev)
319319
{
320320
struct ata_probe_ent *probe_ent;
321-
struct ata_port_info *ppi = &vt6420_port_info;
322-
323-
probe_ent = ata_pci_init_native_mode(pdev, &ppi, ATA_PORT_PRIMARY | ATA_PORT_SECONDARY);
321+
struct ata_port_info *ppi[2];
322+
323+
ppi[0] = ppi[1] = &vt6420_port_info;
324+
probe_ent = ata_pci_init_native_mode(pdev, ppi, ATA_PORT_PRIMARY | ATA_PORT_SECONDARY);
324325
if (!probe_ent)
325326
return NULL;
326327

0 commit comments

Comments
 (0)