diff options
Diffstat (limited to 'drivers/ide/legacy/hd.c')
-rw-r--r-- | drivers/ide/legacy/hd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/ide/legacy/hd.c b/drivers/ide/legacy/hd.c index 45ed03591cd8..661c12f6dda6 100644 --- a/drivers/ide/legacy/hd.c +++ b/drivers/ide/legacy/hd.c | |||
@@ -130,7 +130,7 @@ struct hd_i_struct { | |||
130 | 130 | ||
131 | #ifdef HD_TYPE | 131 | #ifdef HD_TYPE |
132 | static struct hd_i_struct hd_info[] = { HD_TYPE }; | 132 | static struct hd_i_struct hd_info[] = { HD_TYPE }; |
133 | static int NR_HD = ((sizeof (hd_info))/(sizeof (struct hd_i_struct))); | 133 | static int NR_HD = ARRAY_SIZE(hd_info); |
134 | #else | 134 | #else |
135 | static struct hd_i_struct hd_info[MAX_HD]; | 135 | static struct hd_i_struct hd_info[MAX_HD]; |
136 | static int NR_HD; | 136 | static int NR_HD; |