ChangeSet 1.853.1.6, 2002/11/11 17:49:02-08:00, ambx1@neo.rr.com [PATCH] Update serial PnP driver - 2.5.46 (6/6) This patch updates the serial PnP driver to the changes. diff -Nru a/drivers/serial/8250_pnp.c b/drivers/serial/8250_pnp.c --- a/drivers/serial/8250_pnp.c Tue Nov 12 11:14:02 2002 +++ b/drivers/serial/8250_pnp.c Tue Nov 12 11:14:02 2002 @@ -316,6 +316,8 @@ { "", 0 } }; +MODULE_DEVICE_TABLE(pnp, pnp_dev_table); + static void inline avoid_irq_share(struct pnp_dev *dev) { unsigned int map = 0x1FF8; @@ -393,10 +395,10 @@ if (flags & SPCI_FL_NO_SHIRQ) avoid_irq_share(dev); memset(&serial_req, 0, sizeof(serial_req)); - serial_req.irq = dev->irq_resource[0].start; - serial_req.port = pci_resource_start(dev, 0); + serial_req.irq = pnp_irq(dev,0); + serial_req.port = pnp_port_start(dev, 0); if (HIGH_BITS_OFFSET) - serial_req.port = dev->resource[0].start >> HIGH_BITS_OFFSET; + serial_req.port = pnp_port_start(dev, 0) >> HIGH_BITS_OFFSET; #ifdef SERIAL_DEBUG_PNP printk("Setup PNP port: port %x, irq %d, type %d\n", serial_req.port, serial_req.irq, serial_req.io_type); @@ -407,7 +409,7 @@ line = register_serial(&serial_req); if (line >= 0) - dev->driver_data = (void *)(line + 1); + pnp_set_drvdata(dev, (void *)(line + 1)); return line >= 0 ? 0 : -ENODEV; } @@ -442,5 +444,3 @@ MODULE_LICENSE("GPL"); MODULE_DESCRIPTION("Generic 8250/16x50 PnP serial driver"); -/* FIXME */ -/*MODULE_DEVICE_TABLE(pnpbios, pnp_dev_table);*/