diff options
Diffstat (limited to 'drivers/macintosh/windfarm_max6690_sensor.c')
| -rw-r--r-- | drivers/macintosh/windfarm_max6690_sensor.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/macintosh/windfarm_max6690_sensor.c b/drivers/macintosh/windfarm_max6690_sensor.c index d734b31b8236..26b6436e0bb2 100644 --- a/drivers/macintosh/windfarm_max6690_sensor.c +++ b/drivers/macintosh/windfarm_max6690_sensor.c @@ -85,7 +85,7 @@ static int wf_max6690_probe(struct i2c_client *client) else return -ENXIO; - max = kzalloc(sizeof(struct wf_6690_sensor), GFP_KERNEL); + max = kzalloc_obj(struct wf_6690_sensor); if (max == NULL) { printk(KERN_ERR "windfarm: Couldn't create MAX6690 sensor: " "no memory\n"); |
