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
f5a1345b
Commit
f5a1345b
authored
Dec 02, 2012
by
Mark Brown
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'asoc/topic/wm8955' into asoc-next
parents
7f90af52
385b27f5
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
10 deletions
+1
-10
sound/soc/codecs/wm8955.c
sound/soc/codecs/wm8955.c
+1
-10
No files found.
sound/soc/codecs/wm8955.c
View file @
f5a1345b
...
...
@@ -1023,7 +1023,7 @@ static __devinit int wm8955_i2c_probe(struct i2c_client *i2c,
if
(
wm8955
==
NULL
)
return
-
ENOMEM
;
wm8955
->
regmap
=
regmap_init_i2c
(
i2c
,
&
wm8955_regmap
);
wm8955
->
regmap
=
devm_
regmap_init_i2c
(
i2c
,
&
wm8955_regmap
);
if
(
IS_ERR
(
wm8955
->
regmap
))
{
ret
=
PTR_ERR
(
wm8955
->
regmap
);
dev_err
(
&
i2c
->
dev
,
"Failed to allocate register map: %d
\n
"
,
...
...
@@ -1035,22 +1035,13 @@ static __devinit int wm8955_i2c_probe(struct i2c_client *i2c,
ret
=
snd_soc_register_codec
(
&
i2c
->
dev
,
&
soc_codec_dev_wm8955
,
&
wm8955_dai
,
1
);
if
(
ret
!=
0
)
goto
err
;
return
ret
;
err:
regmap_exit
(
wm8955
->
regmap
);
return
ret
;
}
static
__devexit
int
wm8955_i2c_remove
(
struct
i2c_client
*
client
)
{
struct
wm8955_priv
*
wm8955
=
i2c_get_clientdata
(
client
);
snd_soc_unregister_codec
(
&
client
->
dev
);
regmap_exit
(
wm8955
->
regmap
);
return
0
;
}
...
...
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