Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 353465
b: refs/heads/master
c: a2ce647
h: refs/heads/master
i:
  353463: 1e285c5
v: v3
  • Loading branch information
Mark Brown committed Dec 24, 2012
1 parent c6d4cba commit d0354f4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 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: 5ce568329e4fcf9e9050bff878f8157ca43bc882
refs/heads/master: a2ce64750e07d74c51f02c5652edfc1aa2d8e894
4 changes: 1 addition & 3 deletions trunk/sound/soc/codecs/wm8962.c
Original file line number Diff line number Diff line change
Expand Up @@ -3189,7 +3189,7 @@ static void wm8962_init_beep(struct snd_soc_codec *codec)
struct wm8962_priv *wm8962 = snd_soc_codec_get_drvdata(codec);
int ret;

wm8962->beep = input_allocate_device();
wm8962->beep = devm_input_allocate_device(codec->dev);
if (!wm8962->beep) {
dev_err(codec->dev, "Failed to allocate beep device\n");
return;
Expand All @@ -3210,7 +3210,6 @@ static void wm8962_init_beep(struct snd_soc_codec *codec)

ret = input_register_device(wm8962->beep);
if (ret != 0) {
input_free_device(wm8962->beep);
wm8962->beep = NULL;
dev_err(codec->dev, "Failed to register beep device\n");
}
Expand All @@ -3227,7 +3226,6 @@ static void wm8962_free_beep(struct snd_soc_codec *codec)
struct wm8962_priv *wm8962 = snd_soc_codec_get_drvdata(codec);

device_remove_file(codec->dev, &dev_attr_beep);
input_unregister_device(wm8962->beep);
cancel_work_sync(&wm8962->beep_work);
wm8962->beep = NULL;

Expand Down

0 comments on commit d0354f4

Please sign in to comment.