Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 170169
b: refs/heads/master
c: ebab1b1
h: refs/heads/master
i:
  170167: 44a5cfd
v: v3
  • Loading branch information
Mark Brown committed Oct 9, 2009
1 parent d37deef commit 1cff841
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 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: 493b67efffc462703d583389aca96f850c18d3b3
refs/heads/master: ebab1b1d07266ab8ca9f65065e68b02f05504c4e
8 changes: 4 additions & 4 deletions trunk/sound/soc/codecs/tpa6130a2.c
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@

#include "tpa6130a2.h"

struct i2c_client *tpa6130a2_client;
static struct i2c_client *tpa6130a2_client;

/* This struct is used to save the context */
struct tpa6130a2_data {
Expand Down Expand Up @@ -372,7 +372,7 @@ static int tpa6130a2_probe(struct i2c_client *client,

i2c_set_clientdata(tpa6130a2_client, data);

pdata = (struct tpa6130a2_platform_data *)client->dev.platform_data;
pdata = client->dev.platform_data;
data->power_gpio = pdata->power_gpio;

mutex_init(&data->mutex);
Expand Down Expand Up @@ -410,7 +410,7 @@ static int tpa6130a2_probe(struct i2c_client *client,
fail:
kfree(data);
i2c_set_clientdata(tpa6130a2_client, NULL);
tpa6130a2_client = 0;
tpa6130a2_client = NULL;

return ret;
}
Expand All @@ -424,7 +424,7 @@ static int tpa6130a2_remove(struct i2c_client *client)
if (data->power_gpio >= 0)
gpio_free(data->power_gpio);
kfree(data);
tpa6130a2_client = 0;
tpa6130a2_client = NULL;

return 0;
}
Expand Down

0 comments on commit 1cff841

Please sign in to comment.