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
58f4f795
Commit
58f4f795
authored
Dec 10, 2012
by
Mark Brown
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'asoc/topic/wm8988' into asoc-next
parents
fa523698
28517f5c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
12 deletions
+2
-12
sound/soc/codecs/wm8988.c
sound/soc/codecs/wm8988.c
+2
-12
No files found.
sound/soc/codecs/wm8988.c
View file @
58f4f795
...
...
@@ -882,7 +882,7 @@ static int __devinit wm8988_spi_probe(struct spi_device *spi)
if
(
wm8988
==
NULL
)
return
-
ENOMEM
;
wm8988
->
regmap
=
regmap_init_spi
(
spi
,
&
wm8988_regmap
);
wm8988
->
regmap
=
devm_
regmap_init_spi
(
spi
,
&
wm8988_regmap
);
if
(
IS_ERR
(
wm8988
->
regmap
))
{
ret
=
PTR_ERR
(
wm8988
->
regmap
);
dev_err
(
&
spi
->
dev
,
"Failed to init regmap: %d
\n
"
,
ret
);
...
...
@@ -893,17 +893,12 @@ static int __devinit wm8988_spi_probe(struct spi_device *spi)
ret
=
snd_soc_register_codec
(
&
spi
->
dev
,
&
soc_codec_dev_wm8988
,
&
wm8988_dai
,
1
);
if
(
ret
!=
0
)
regmap_exit
(
wm8988
->
regmap
);
return
ret
;
}
static
int
__devexit
wm8988_spi_remove
(
struct
spi_device
*
spi
)
{
struct
wm8988_priv
*
wm8988
=
spi_get_drvdata
(
spi
);
snd_soc_unregister_codec
(
&
spi
->
dev
);
regmap_exit
(
wm8988
->
regmap
);
return
0
;
}
...
...
@@ -931,7 +926,7 @@ static __devinit int wm8988_i2c_probe(struct i2c_client *i2c,
i2c_set_clientdata
(
i2c
,
wm8988
);
wm8988
->
regmap
=
regmap_init_i2c
(
i2c
,
&
wm8988_regmap
);
wm8988
->
regmap
=
devm_
regmap_init_i2c
(
i2c
,
&
wm8988_regmap
);
if
(
IS_ERR
(
wm8988
->
regmap
))
{
ret
=
PTR_ERR
(
wm8988
->
regmap
);
dev_err
(
&
i2c
->
dev
,
"Failed to init regmap: %d
\n
"
,
ret
);
...
...
@@ -940,17 +935,12 @@ static __devinit int wm8988_i2c_probe(struct i2c_client *i2c,
ret
=
snd_soc_register_codec
(
&
i2c
->
dev
,
&
soc_codec_dev_wm8988
,
&
wm8988_dai
,
1
);
if
(
ret
!=
0
)
regmap_exit
(
wm8988
->
regmap
);
return
ret
;
}
static
__devexit
int
wm8988_i2c_remove
(
struct
i2c_client
*
client
)
{
struct
wm8988_priv
*
wm8988
=
i2c_get_clientdata
(
client
);
snd_soc_unregister_codec
(
&
client
->
dev
);
regmap_exit
(
wm8988
->
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