summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndi Shyti <andi@etezian.org>2013-06-14 15:55:33 +0200
committerAndi Shyti <andi@etezian.org>2013-06-14 15:55:33 +0200
commit2d414d7127993ed4d658161098f8b2d3b4b99ecd (patch)
tree3dc45712a118fb5ee40181ed60de8f4934368d6a
parent894af494f0a56ecc2e59e2760fc7395f0c9358da (diff)
etzkx.c: fix compilation error on devm_kzalloc
Signed-off-by: Andi Shyti <andi@etezian.org>
-rw-r--r--etzkx.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/etzkx.c b/etzkx.c
index 0629007..e86f733 100644
--- a/etzkx.c
+++ b/etzkx.c
@@ -2064,7 +2064,8 @@ static int etzkx_probe(struct i2c_client *client,
return -ENODEV;
}
- sdata = devm_kzalloc(sizeof(struct etzkx_data), GFP_KERNEL);
+ sdata = devm_kzalloc(&client->dev,
+ sizeof(struct etzkx_data), GFP_KERNEL);
if (!sdata) {
dev_err(&client->dev, "no memory available\n");
return -ENOMEM;