aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
Diffstat (limited to 'drivers')
-rw-r--r--drivers/input/serio/i8042.c6
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