Skip to content

Commit

Permalink
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel…
Browse files Browse the repository at this point in the history
…/git/sameo/mfd-2.6

* 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/sameo/mfd-2.6:
  mfd: Do not dereference null pointer in twl4030 error path
  mfd: Always initialise WM831x IRQ mutex
  • Loading branch information
Linus Torvalds committed Oct 29, 2009
2 parents 3242f98 + a864343 commit 7fecf0a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion drivers/mfd/twl4030-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -795,7 +795,7 @@ twl4030_probe(struct i2c_client *client, const struct i2c_device_id *id)
twl->client = i2c_new_dummy(client->adapter,
twl->address);
if (!twl->client) {
dev_err(&twl->client->dev,
dev_err(&client->dev,
"can't attach client %d\n", i);
status = -ENOMEM;
goto fail;
Expand Down
3 changes: 2 additions & 1 deletion drivers/mfd/wm831x-irq.c
Original file line number Diff line number Diff line change
Expand Up @@ -507,6 +507,8 @@ int wm831x_irq_init(struct wm831x *wm831x, int irq)
{
int i, ret;

mutex_init(&wm831x->irq_lock);

if (!irq) {
dev_warn(wm831x->dev,
"No interrupt specified - functionality limited\n");
Expand All @@ -521,7 +523,6 @@ int wm831x_irq_init(struct wm831x *wm831x, int irq)
}

wm831x->irq = irq;
mutex_init(&wm831x->irq_lock);
INIT_WORK(&wm831x->irq_work, wm831x_irq_worker);

/* Mask the individual interrupt sources */
Expand Down

0 comments on commit 7fecf0a

Please sign in to comment.