Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 350691
b: refs/heads/master
c: 21fb9f0
h: refs/heads/master
i:
  350689: 1902801
  350687: f20c8ed
v: v3
  • Loading branch information
Peter Ujfalusi authored and Dmitry Torokhov committed Jan 25, 2013
1 parent dac1ed2 commit b70feaf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 11 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: b2ebcc1be96ee6dd5481697b421447e5a3f61d76
refs/heads/master: 21fb9f0d5e91152066c9be801b44a7c592fd3fa2
11 changes: 1 addition & 10 deletions trunk/drivers/input/misc/twl6040-vibra.c
Original file line number Diff line number Diff line change
Expand Up @@ -361,19 +361,13 @@ static int twl6040_vibra_probe(struct platform_device *pdev)
}
}

info->workqueue = alloc_workqueue("twl6040-vibra", 0, 0);
if (info->workqueue == NULL) {
dev_err(info->dev, "couldn't create workqueue\n");
ret = -ENOMEM;
goto err_regulator;
}
INIT_WORK(&info->play_work, vibra_play_work);

info->input_dev = input_allocate_device();
if (info->input_dev == NULL) {
dev_err(info->dev, "couldn't allocate input device\n");
ret = -ENOMEM;
goto err_wq;
goto err_regulator;
}

input_set_drvdata(info->input_dev, info);
Expand Down Expand Up @@ -404,8 +398,6 @@ static int twl6040_vibra_probe(struct platform_device *pdev)
input_ff_destroy(info->input_dev);
err_ialloc:
input_free_device(info->input_dev);
err_wq:
destroy_workqueue(info->workqueue);
err_regulator:
regulator_bulk_free(ARRAY_SIZE(info->supplies), info->supplies);
return ret;
Expand All @@ -417,7 +409,6 @@ static int twl6040_vibra_remove(struct platform_device *pdev)

input_unregister_device(info->input_dev);
regulator_bulk_free(ARRAY_SIZE(info->supplies), info->supplies);
destroy_workqueue(info->workqueue);

return 0;
}
Expand Down

0 comments on commit b70feaf

Please sign in to comment.