aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/tty/serial/of_serial.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/tty/serial/of_serial.c b/drivers/tty/serial/of_serial.c
index 33fb94f78967..e15c443b2a3c 100644
--- a/drivers/tty/serial/of_serial.c
+++ b/drivers/tty/serial/of_serial.c
@@ -115,7 +115,8 @@ static int of_platform_serial_setup(struct platform_device *ofdev,
115 port->iotype = UPIO_MEM; 115 port->iotype = UPIO_MEM;
116 break; 116 break;
117 case 4: 117 case 4:
118 port->iotype = UPIO_MEM32; 118 port->iotype = of_device_is_big_endian(np) ?
119 UPIO_MEM32BE : UPIO_MEM32;
119 break; 120 break;
120 default: 121 default:
121 dev_warn(&ofdev->dev, "unsupported reg-io-width (%d)\n", 122 dev_warn(&ofdev->dev, "unsupported reg-io-width (%d)\n",