|
@@ -181,8 +181,7 @@ static int intel_hid_probe(struct platform_device *device)
|
|
|
return -ENODEV;
|
|
return -ENODEV;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- priv = devm_kzalloc(&device->dev,
|
|
|
|
|
- sizeof(struct intel_hid_priv *), GFP_KERNEL);
|
|
|
|
|
|
|
+ priv = devm_kzalloc(&device->dev, sizeof(*priv), GFP_KERNEL);
|
|
|
if (!priv)
|
|
if (!priv)
|
|
|
return -ENOMEM;
|
|
return -ENOMEM;
|
|
|
dev_set_drvdata(&device->dev, priv);
|
|
dev_set_drvdata(&device->dev, priv);
|