Only the platform should configure pins to be used by the driver. The driver must work independently from the settings. Signed-off-by: Juergen Beisert <jbe@xxxxxxxxxxxxxx> --- drivers/serial/stm-serial.c | 7 ------- 1 files changed, 0 insertions(+), 7 deletions(-) diff --git a/drivers/serial/stm-serial.c b/drivers/serial/stm-serial.c index 3edd484..a225e30 100644 --- a/drivers/serial/stm-serial.c +++ b/drivers/serial/stm-serial.c @@ -134,13 +134,6 @@ static int stm_clocksource_clock_change(struct notifier_block *nb, unsigned long static int stm_serial_init_port(struct console_device *cdev) { struct device_d *dev = cdev->dev; - /* - * If the board specific file registers this console we should force - * the usage of the debug UART pins, to be able to let the user see - * the output, even if the board file forgets to configure these pins. - */ - imx_gpio_mode(PWM1_DUART_TX); - imx_gpio_mode(PWM0_DUART_RX); /* Disable UART */ writel(0, dev->map_base + UARTDBGCR); -- 1.7.2.3 _______________________________________________ barebox mailing list barebox@xxxxxxxxxxxxxxxxxxx http://lists.infradead.org/mailman/listinfo/barebox