/* Remove serial ports registered against a platform device.  */
static int __devexit serial8250_remove(struct platform_device *dev)
/* Remove serial ports registered against a platform device.  */
static int __devexit serial8250_remove(struct platform_device *dev)
{
	int i;
	for (i = 0; i < nr_uarts; i++) {
		struct uart_8250_port *up = &serial8250_ports[i];
		if (up->port.dev == &dev->dev)
			serial8250_unregister_port(i);
	}
	return 0;
}