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
nexedi
linux
Commits
7a7f9875
Commit
7a7f9875
authored
Dec 10, 2012
by
Mark Brown
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'asoc/topic/wm8955' into asoc-next
parents
f443a29d
385b27f5
Changes
1
Hide 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 @
7a7f9875
...
@@ -1023,7 +1023,7 @@ static __devinit int wm8955_i2c_probe(struct i2c_client *i2c,
...
@@ -1023,7 +1023,7 @@ static __devinit int wm8955_i2c_probe(struct i2c_client *i2c,
if
(
wm8955
==
NULL
)
if
(
wm8955
==
NULL
)
return
-
ENOMEM
;
return
-
ENOMEM
;
wm8955
->
regmap
=
regmap_init_i2c
(
i2c
,
&
wm8955_regmap
);
wm8955
->
regmap
=
devm_
regmap_init_i2c
(
i2c
,
&
wm8955_regmap
);
if
(
IS_ERR
(
wm8955
->
regmap
))
{
if
(
IS_ERR
(
wm8955
->
regmap
))
{
ret
=
PTR_ERR
(
wm8955
->
regmap
);
ret
=
PTR_ERR
(
wm8955
->
regmap
);
dev_err
(
&
i2c
->
dev
,
"Failed to allocate register map: %d
\n
"
,
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,
...
@@ -1035,22 +1035,13 @@ static __devinit int wm8955_i2c_probe(struct i2c_client *i2c,
ret
=
snd_soc_register_codec
(
&
i2c
->
dev
,
ret
=
snd_soc_register_codec
(
&
i2c
->
dev
,
&
soc_codec_dev_wm8955
,
&
wm8955_dai
,
1
);
&
soc_codec_dev_wm8955
,
&
wm8955_dai
,
1
);
if
(
ret
!=
0
)
goto
err
;
return
ret
;
return
ret
;
err:
regmap_exit
(
wm8955
->
regmap
);
return
ret
;
}
}
static
__devexit
int
wm8955_i2c_remove
(
struct
i2c_client
*
client
)
static
__devexit
int
wm8955_i2c_remove
(
struct
i2c_client
*
client
)
{
{
struct
wm8955_priv
*
wm8955
=
i2c_get_clientdata
(
client
);
snd_soc_unregister_codec
(
&
client
->
dev
);
snd_soc_unregister_codec
(
&
client
->
dev
);
regmap_exit
(
wm8955
->
regmap
);
return
0
;
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