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
ca7e5cb2
Commit
ca7e5cb2
authored
Dec 02, 2012
by
Mark Brown
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'asoc/topic/lm49453' into asoc-next
parents
68637849
2fadf6a8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
8 deletions
+2
-8
sound/soc/codecs/lm49453.c
sound/soc/codecs/lm49453.c
+2
-8
No files found.
sound/soc/codecs/lm49453.c
View file @
ca7e5cb2
...
@@ -1497,7 +1497,7 @@ static __devinit int lm49453_i2c_probe(struct i2c_client *i2c,
...
@@ -1497,7 +1497,7 @@ static __devinit int lm49453_i2c_probe(struct i2c_client *i2c,
i2c_set_clientdata
(
i2c
,
lm49453
);
i2c_set_clientdata
(
i2c
,
lm49453
);
lm49453
->
regmap
=
regmap_init_i2c
(
i2c
,
&
lm49453_regmap_config
);
lm49453
->
regmap
=
devm_
regmap_init_i2c
(
i2c
,
&
lm49453_regmap_config
);
if
(
IS_ERR
(
lm49453
->
regmap
))
{
if
(
IS_ERR
(
lm49453
->
regmap
))
{
ret
=
PTR_ERR
(
lm49453
->
regmap
);
ret
=
PTR_ERR
(
lm49453
->
regmap
);
dev_err
(
&
i2c
->
dev
,
"Failed to allocate register map: %d
\n
"
,
dev_err
(
&
i2c
->
dev
,
"Failed to allocate register map: %d
\n
"
,
...
@@ -1508,21 +1508,15 @@ static __devinit int lm49453_i2c_probe(struct i2c_client *i2c,
...
@@ -1508,21 +1508,15 @@ static __devinit int lm49453_i2c_probe(struct i2c_client *i2c,
ret
=
snd_soc_register_codec
(
&
i2c
->
dev
,
ret
=
snd_soc_register_codec
(
&
i2c
->
dev
,
&
soc_codec_dev_lm49453
,
&
soc_codec_dev_lm49453
,
lm49453_dai
,
ARRAY_SIZE
(
lm49453_dai
));
lm49453_dai
,
ARRAY_SIZE
(
lm49453_dai
));
if
(
ret
<
0
)
{
if
(
ret
<
0
)
dev_err
(
&
i2c
->
dev
,
"Failed to register codec: %d
\n
"
,
ret
);
dev_err
(
&
i2c
->
dev
,
"Failed to register codec: %d
\n
"
,
ret
);
regmap_exit
(
lm49453
->
regmap
);
return
ret
;
}
return
ret
;
return
ret
;
}
}
static
int
__devexit
lm49453_i2c_remove
(
struct
i2c_client
*
client
)
static
int
__devexit
lm49453_i2c_remove
(
struct
i2c_client
*
client
)
{
{
struct
lm49453_priv
*
lm49453
=
i2c_get_clientdata
(
client
);
snd_soc_unregister_codec
(
&
client
->
dev
);
snd_soc_unregister_codec
(
&
client
->
dev
);
regmap_exit
(
lm49453
->
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