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
ac0d9c90
Commit
ac0d9c90
authored
Dec 10, 2012
by
Mark Brown
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'asoc/topic/da7210' into asoc-next
parents
f20eca1c
ff7dc6af
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
21 deletions
+3
-21
sound/soc/codecs/da7210.c
sound/soc/codecs/da7210.c
+3
-21
No files found.
sound/soc/codecs/da7210.c
View file @
ac0d9c90
...
...
@@ -1231,7 +1231,7 @@ static int __devinit da7210_i2c_probe(struct i2c_client *i2c,
i2c_set_clientdata
(
i2c
,
da7210
);
da7210
->
regmap
=
regmap_init_i2c
(
i2c
,
&
da7210_regmap_config_i2c
);
da7210
->
regmap
=
devm_
regmap_init_i2c
(
i2c
,
&
da7210_regmap_config_i2c
);
if
(
IS_ERR
(
da7210
->
regmap
))
{
ret
=
PTR_ERR
(
da7210
->
regmap
);
dev_err
(
&
i2c
->
dev
,
"regmap_init() failed: %d
\n
"
,
ret
);
...
...
@@ -1245,24 +1245,15 @@ static int __devinit da7210_i2c_probe(struct i2c_client *i2c,
ret
=
snd_soc_register_codec
(
&
i2c
->
dev
,
&
soc_codec_dev_da7210
,
&
da7210_dai
,
1
);
if
(
ret
<
0
)
{
if
(
ret
<
0
)
dev_err
(
&
i2c
->
dev
,
"Failed to register codec: %d
\n
"
,
ret
);
goto
err_regmap
;
}
return
ret
;
err_regmap:
regmap_exit
(
da7210
->
regmap
);
return
ret
;
}
static
int
__devexit
da7210_i2c_remove
(
struct
i2c_client
*
client
)
{
struct
da7210_priv
*
da7210
=
i2c_get_clientdata
(
client
);
snd_soc_unregister_codec
(
&
client
->
dev
);
regmap_exit
(
da7210
->
regmap
);
return
0
;
}
...
...
@@ -1348,22 +1339,13 @@ static int __devinit da7210_spi_probe(struct spi_device *spi)
ret
=
snd_soc_register_codec
(
&
spi
->
dev
,
&
soc_codec_dev_da7210
,
&
da7210_dai
,
1
);
if
(
ret
<
0
)
goto
err_regmap
;
return
ret
;
err_regmap:
regmap_exit
(
da7210
->
regmap
);
return
ret
;
}
static
int
__devexit
da7210_spi_remove
(
struct
spi_device
*
spi
)
{
struct
da7210_priv
*
da7210
=
spi_get_drvdata
(
spi
);
snd_soc_unregister_codec
(
&
spi
->
dev
);
regmap_exit
(
da7210
->
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