]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - drivers/serial/serial_s5p.c
S5P: serial: Use the inline function instead of static value
[karo-tx-uboot.git] / drivers / serial / serial_s5p.c
index 9c1cbf4a4832ae10a1fe4601b2ef329113e87574..f1ffa29fd7f987062f1ef8f5236cbbadc59e05cc 100644 (file)
@@ -72,7 +72,7 @@ void serial_setbrg_dev(const int dev_index)
 
        writel(val / 16 - 1, &uart->ubrdiv);
 
-       if (use_divslot)
+       if (s5p_uart_divslot())
                writew(udivslot[val % 16], &uart->rest.slot);
        else
                writeb(val % 16, &uart->rest.value);