global: Convert simple_strtoul() with decimal to dectoul()
[platform/kernel/u-boot.git] / drivers / serial / serial.c
index dea25a0..ebbd219 100644 (file)
@@ -61,7 +61,7 @@ static int on_baudrate(const char *name, const char *value, enum env_op op,
                /*
                 * Switch to new baudrate if new baudrate is supported
                 */
-               baudrate = simple_strtoul(value, NULL, 10);
+               baudrate = dectoul(value, NULL);
 
                /* Not actually changing */
                if (gd->baudrate == baudrate)