summaryrefslogtreecommitdiff
path: root/drivers/hwmon/coretemp.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/hwmon/coretemp.c')
-rw-r--r--drivers/hwmon/coretemp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/hwmon/coretemp.c b/drivers/hwmon/coretemp.c
index 55f54bd556a4..6a0d94711ead 100644
--- a/drivers/hwmon/coretemp.c
+++ b/drivers/hwmon/coretemp.c
@@ -493,7 +493,7 @@ init_temp_data(struct platform_data *pdata, unsigned int cpu, int pkg_flag)
*/
pdata->nr_cores = NUM_REAL_CORES;
pdata->core_data = kzalloc_objs(struct temp_data *,
- pdata->nr_cores, GFP_KERNEL);
+ pdata->nr_cores);
if (!pdata->core_data)
return NULL;
}