Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 193520
b: refs/heads/master
c: a5b33e6
h: refs/heads/master
v: v3
  • Loading branch information
Wolfram Sang authored and Dmitry Torokhov committed Apr 14, 2010
1 parent 5b3439f commit 785f234
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: d6372b706e83817dfa6c9326d1054b9b95a7de2a
refs/heads/master: a5b33e6a207d75120ad9dad0b5401b561991dcce
6 changes: 4 additions & 2 deletions trunk/drivers/input/keyboard/lm8323.c
Original file line number Diff line number Diff line change
Expand Up @@ -670,8 +670,6 @@ static int __devinit lm8323_probe(struct i2c_client *client,
goto fail1;
}

i2c_set_clientdata(client, lm);

lm->client = client;
lm->idev = idev;
mutex_init(&lm->lock);
Expand Down Expand Up @@ -753,6 +751,8 @@ static int __devinit lm8323_probe(struct i2c_client *client,
goto fail4;
}

i2c_set_clientdata(client, lm);

device_init_wakeup(&client->dev, 1);
enable_irq_wake(client->irq);

Expand All @@ -778,6 +778,8 @@ static int __devexit lm8323_remove(struct i2c_client *client)
struct lm8323_chip *lm = i2c_get_clientdata(client);
int i;

i2c_set_clientdata(client, NULL);

disable_irq_wake(client->irq);
free_irq(client->irq, lm);
cancel_work_sync(&lm->work);
Expand Down

0 comments on commit 785f234

Please sign in to comment.