diff options
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/s390/cio/device_id.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/s390/cio/device_id.c b/drivers/s390/cio/device_id.c index f17275917fe5..997f46874537 100644 --- a/drivers/s390/cio/device_id.c +++ b/drivers/s390/cio/device_id.c | |||
@@ -11,6 +11,7 @@ | |||
11 | 11 | ||
12 | #include <linux/module.h> | 12 | #include <linux/module.h> |
13 | #include <linux/init.h> | 13 | #include <linux/init.h> |
14 | #include <linux/kernel.h> | ||
14 | 15 | ||
15 | #include <asm/ccwdev.h> | 16 | #include <asm/ccwdev.h> |
16 | #include <asm/delay.h> | 17 | #include <asm/delay.h> |
@@ -138,7 +139,7 @@ VM_virtual_device_info (__u16 devno, struct senseid *ps) | |||
138 | ps->cu_model = 0x60; | 139 | ps->cu_model = 0x60; |
139 | return; | 140 | return; |
140 | } | 141 | } |
141 | for (i = 0; i < sizeof(vm_devices) / sizeof(vm_devices[0]); i++) | 142 | for (i = 0; i < ARRAY_SIZE(vm_devices); i++) |
142 | if (diag_data.vrdcvcla == vm_devices[i].vrdcvcla && | 143 | if (diag_data.vrdcvcla == vm_devices[i].vrdcvcla && |
143 | diag_data.vrdcvtyp == vm_devices[i].vrdcvtyp) { | 144 | diag_data.vrdcvtyp == vm_devices[i].vrdcvtyp) { |
144 | ps->cu_type = vm_devices[i].cu_type; | 145 | ps->cu_type = vm_devices[i].cu_type; |