diff options
Diffstat (limited to 'drivers/char/serial167.c')
-rw-r--r-- | drivers/char/serial167.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/char/serial167.c b/drivers/char/serial167.c index c2deac968bdd..a580748b92a1 100644 --- a/drivers/char/serial167.c +++ b/drivers/char/serial167.c | |||
@@ -117,7 +117,7 @@ struct cyclades_port cy_port[] = { | |||
117 | {-1 }, /* ttyS2 */ | 117 | {-1 }, /* ttyS2 */ |
118 | {-1 }, /* ttyS3 */ | 118 | {-1 }, /* ttyS3 */ |
119 | }; | 119 | }; |
120 | #define NR_PORTS (sizeof(cy_port)/sizeof(struct cyclades_port)) | 120 | #define NR_PORTS ARRAY_SIZE(cy_port) |
121 | 121 | ||
122 | /* | 122 | /* |
123 | * tmp_buf is used as a temporary buffer by serial_write. We need to | 123 | * tmp_buf is used as a temporary buffer by serial_write. We need to |