serial: 8250: introduce get_divisor() and set_divisor() hook
[linux-2.6-microblaze.git] / drivers / tty / serial / 8250 / 8250_core.c
index 9342fc2..a0bb772 100644 (file)
@@ -1023,6 +1023,10 @@ int serial8250_register_8250_port(struct uart_8250_port *up)
                        uart->port.get_mctrl = up->port.get_mctrl;
                if (up->port.set_mctrl)
                        uart->port.set_mctrl = up->port.set_mctrl;
+               if (up->port.get_divisor)
+                       uart->port.get_divisor = up->port.get_divisor;
+               if (up->port.set_divisor)
+                       uart->port.set_divisor = up->port.set_divisor;
                if (up->port.startup)
                        uart->port.startup = up->port.startup;
                if (up->port.shutdown)