diff options
author | Andi Shyti <andi@etezian.org> | 2013-06-14 15:55:33 +0200 |
---|---|---|
committer | Andi Shyti <andi@etezian.org> | 2013-06-14 15:55:33 +0200 |
commit | 2d414d7127993ed4d658161098f8b2d3b4b99ecd (patch) | |
tree | 3dc45712a118fb5ee40181ed60de8f4934368d6a | |
parent | 894af494f0a56ecc2e59e2760fc7395f0c9358da (diff) |
etzkx.c: fix compilation error on devm_kzalloc
Signed-off-by: Andi Shyti <andi@etezian.org>
-rw-r--r-- | etzkx.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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; |