]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/char/amiserial.c
[PATCH] drivers/char: Use ARRAY_SIZE macro
[linux-2.6-omap-h63xx.git] / drivers / char / amiserial.c
index a124f8c5d062dd65b29775881f9b9c55a0d95a14..10c81ecdace8a65492711beafd5798bcf1438339 100644 (file)
@@ -116,7 +116,7 @@ static void rs_wait_until_sent(struct tty_struct *tty, int timeout);
 
 static struct serial_state rs_table[1];
 
-#define NR_PORTS       (sizeof(rs_table)/sizeof(struct serial_state))
+#define NR_PORTS ARRAY_SIZE(rs_table)
 
 /*
  * tmp_buf is used as a temporary buffer by serial_write.  We need to