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
67fc455c
Commit
67fc455c
authored
Dec 10, 2012
by
Mark Brown
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'asoc/topic/ak4535' into asoc-next
parents
c3b07b07
77d19b10
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
6 deletions
+1
-6
sound/soc/codecs/ak4535.c
sound/soc/codecs/ak4535.c
+1
-6
No files found.
sound/soc/codecs/ak4535.c
View file @
67fc455c
...
...
@@ -447,7 +447,7 @@ static __devinit int ak4535_i2c_probe(struct i2c_client *i2c,
if
(
ak4535
==
NULL
)
return
-
ENOMEM
;
ak4535
->
regmap
=
regmap_init_i2c
(
i2c
,
&
ak4535_regmap
);
ak4535
->
regmap
=
devm_
regmap_init_i2c
(
i2c
,
&
ak4535_regmap
);
if
(
IS_ERR
(
ak4535
->
regmap
))
{
ret
=
PTR_ERR
(
ak4535
->
regmap
);
dev_err
(
&
i2c
->
dev
,
"Failed to init regmap: %d
\n
"
,
ret
);
...
...
@@ -458,18 +458,13 @@ static __devinit int ak4535_i2c_probe(struct i2c_client *i2c,
ret
=
snd_soc_register_codec
(
&
i2c
->
dev
,
&
soc_codec_dev_ak4535
,
&
ak4535_dai
,
1
);
if
(
ret
!=
0
)
regmap_exit
(
ak4535
->
regmap
);
return
ret
;
}
static
__devexit
int
ak4535_i2c_remove
(
struct
i2c_client
*
client
)
{
struct
ak4535_priv
*
ak4535
=
i2c_get_clientdata
(
client
);
snd_soc_unregister_codec
(
&
client
->
dev
);
regmap_exit
(
ak4535
->
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