diff options
author | Dmitry Torokhov <dtor_core@ameritech.net> | 2005-09-10 13:04:42 -0400 |
---|---|---|
committer | Dmitry Torokhov <dtor_core@ameritech.net> | 2005-09-10 13:04:42 -0400 |
commit | d39969deee4b541be4ee5789a2e4c14511c886e2 (patch) | |
tree | e1a95fea39c41fe71941a82b4f5ab0efc1d3f992 /drivers | |
parent | fe1e86049813641a518d15adf7191bd711b4f611 (diff) |
Input: i8042 - use kzalloc instead of kcalloc
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/input/serio/i8042.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/input/serio/i8042.c b/drivers/input/serio/i8042.c index 19ef35db342e..40d451ce07ff 100644 --- a/drivers/input/serio/i8042.c +++ b/drivers/input/serio/i8042.c | |||
@@ -986,7 +986,7 @@ static int __init i8042_create_kbd_port(void) | |||
986 | struct serio *serio; | 986 | struct serio *serio; |
987 | struct i8042_port *port = &i8042_ports[I8042_KBD_PORT_NO]; | 987 | struct i8042_port *port = &i8042_ports[I8042_KBD_PORT_NO]; |
988 | 988 | ||
989 | serio = kcalloc(1, sizeof(struct serio), GFP_KERNEL); | 989 | serio = kzalloc(sizeof(struct serio), GFP_KERNEL); |
990 | if (!serio) | 990 | if (!serio) |
991 | return -ENOMEM; | 991 | return -ENOMEM; |
992 | 992 | ||
@@ -1011,7 +1011,7 @@ static int __init i8042_create_aux_port(void) | |||
1011 | struct serio *serio; | 1011 | struct serio *serio; |
1012 | struct i8042_port *port = &i8042_ports[I8042_AUX_PORT_NO]; | 1012 | struct i8042_port *port = &i8042_ports[I8042_AUX_PORT_NO]; |
1013 | 1013 | ||
1014 | serio = kcalloc(1, sizeof(struct serio), GFP_KERNEL); | 1014 | serio = kzalloc(sizeof(struct serio), GFP_KERNEL); |
1015 | if (!serio) | 1015 | if (!serio) |
1016 | return -ENOMEM; | 1016 | return -ENOMEM; |
1017 | 1017 | ||
@@ -1036,7 +1036,7 @@ static int __init i8042_create_mux_port(int index) | |||
1036 | struct serio *serio; | 1036 | struct serio *serio; |
1037 | struct i8042_port *port = &i8042_ports[I8042_MUX_PORT_NO + index]; | 1037 | struct i8042_port *port = &i8042_ports[I8042_MUX_PORT_NO + index]; |
1038 | 1038 | ||
1039 | serio = kcalloc(1, sizeof(struct serio), GFP_KERNEL); | 1039 | serio = kzalloc(sizeof(struct serio), GFP_KERNEL); |
1040 | if (!serio) | 1040 | if (!serio) |
1041 | return -ENOMEM; | 1041 | return -ENOMEM; |
1042 | 1042 | ||