diff mbox

[v4] serial: spi: add spi-uart driver for Maxim 3110

Message ID 20100302113817.155f78aa@feng-i7 (mailing list archive)
State Changes Requested
Headers show

Commit Message

Feng Tang March 2, 2010, 3:38 a.m. UTC
None
diff mbox

Patch

diff --git a/drivers/serial/max3110.c b/drivers/serial/max3110.c
index 3283ba6..3dd2082 100644
--- a/drivers/serial/max3110.c
+++ b/drivers/serial/max3110.c
@@ -142,7 +142,7 @@  static int max3110_read_multi(struct uart_max3110 *max, u8 *buf)
 	int i, j;
 
 	memset(obuf, 0, sizeof(obuf));
-	memset(obuf, 0, sizeof(ibuf));
+	memset(ibuf, 0, sizeof(ibuf));
 
 	if (max3110_write_then_read(max, obuf, ibuf,
 				M3110_RX_FIFO_DEPTH * 2, 1))