Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
1b4327dc
Commit
1b4327dc
authored
Feb 11, 2013
by
Mark Brown
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'asoc/topic/cs42l52' into asoc-next
parents
e790245e
e958f8b8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
3 deletions
+1
-3
sound/soc/codecs/cs42l52.c
sound/soc/codecs/cs42l52.c
+1
-3
No files found.
sound/soc/codecs/cs42l52.c
View file @
1b4327dc
...
...
@@ -1038,7 +1038,7 @@ static void cs42l52_init_beep(struct snd_soc_codec *codec)
struct
cs42l52_private
*
cs42l52
=
snd_soc_codec_get_drvdata
(
codec
);
int
ret
;
cs42l52
->
beep
=
input_allocate_device
(
);
cs42l52
->
beep
=
devm_input_allocate_device
(
codec
->
dev
);
if
(
!
cs42l52
->
beep
)
{
dev_err
(
codec
->
dev
,
"Failed to allocate beep device
\n
"
);
return
;
...
...
@@ -1059,7 +1059,6 @@ static void cs42l52_init_beep(struct snd_soc_codec *codec)
ret
=
input_register_device
(
cs42l52
->
beep
);
if
(
ret
!=
0
)
{
input_free_device
(
cs42l52
->
beep
);
cs42l52
->
beep
=
NULL
;
dev_err
(
codec
->
dev
,
"Failed to register beep device
\n
"
);
}
...
...
@@ -1076,7 +1075,6 @@ static void cs42l52_free_beep(struct snd_soc_codec *codec)
struct
cs42l52_private
*
cs42l52
=
snd_soc_codec_get_drvdata
(
codec
);
device_remove_file
(
codec
->
dev
,
&
dev_attr_beep
);
input_unregister_device
(
cs42l52
->
beep
);
cancel_work_sync
(
&
cs42l52
->
beep_work
);
cs42l52
->
beep
=
NULL
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment