diff options
Diffstat (limited to 'drivers/char/amiserial.c')
-rw-r--r-- | drivers/char/amiserial.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/char/amiserial.c b/drivers/char/amiserial.c index a124f8c5d062..10c81ecdace8 100644 --- a/drivers/char/amiserial.c +++ b/drivers/char/amiserial.c | |||
@@ -116,7 +116,7 @@ static void rs_wait_until_sent(struct tty_struct *tty, int timeout); | |||
116 | 116 | ||
117 | static struct serial_state rs_table[1]; | 117 | static struct serial_state rs_table[1]; |
118 | 118 | ||
119 | #define NR_PORTS (sizeof(rs_table)/sizeof(struct serial_state)) | 119 | #define NR_PORTS ARRAY_SIZE(rs_table) |
120 | 120 | ||
121 | /* | 121 | /* |
122 | * tmp_buf is used as a temporary buffer by serial_write. We need to | 122 | * tmp_buf is used as a temporary buffer by serial_write. We need to |