Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ide-pnp: use struct ide_port_info

This fixes hwif->channel and drive->dn assignments.

Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>

+5 -1
+5 -1
drivers/ide/ide-pnp.c
··· 27 27 {.id = ""} 28 28 }; 29 29 30 + static const struct ide_port_info ide_pnp_port_info = { 31 + .host_flags = IDE_HFLAG_NO_DMA, 32 + }; 33 + 30 34 static int idepnp_probe(struct pnp_dev *dev, const struct pnp_device_id *dev_id) 31 35 { 32 36 struct ide_host *host; ··· 64 60 hw.irq = pnp_irq(dev, 0); 65 61 hw.chipset = ide_generic; 66 62 67 - rc = ide_host_add(NULL, hws, &host); 63 + rc = ide_host_add(&ide_pnp_port_info, hws, &host); 68 64 if (rc) 69 65 goto out; 70 66