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
93e051d2
Commit
93e051d2
authored
Feb 22, 2009
by
Mark Brown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ASoC: Only unregister drivers we registered for WM8753
Signed-off-by:
Mark Brown
<
broonie@opensource.wolfsonmicro.com
>
parent
eeb1080b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
+7
-3
sound/soc/codecs/wm8753.c
sound/soc/codecs/wm8753.c
+7
-3
No files found.
sound/soc/codecs/wm8753.c
View file @
93e051d2
...
...
@@ -1845,6 +1845,7 @@ static int wm8753_remove(struct platform_device *pdev)
{
struct
snd_soc_device
*
socdev
=
platform_get_drvdata
(
pdev
);
struct
snd_soc_codec
*
codec
=
socdev
->
card
->
codec
;
struct
wm8753_setup_data
*
setup
=
socdev
->
codec_data
;
if
(
codec
->
control_data
)
wm8753_set_bias_level
(
codec
,
SND_SOC_BIAS_OFF
);
...
...
@@ -1852,11 +1853,14 @@ static int wm8753_remove(struct platform_device *pdev)
snd_soc_free_pcms
(
socdev
);
snd_soc_dapm_free
(
socdev
);
#if defined(CONFIG_I2C) || defined(CONFIG_I2C_MODULE)
i2c_unregister_device
(
codec
->
control_data
);
i2c_del_driver
(
&
wm8753_i2c_driver
);
if
(
setup
->
i2c_address
)
{
i2c_unregister_device
(
codec
->
control_data
);
i2c_del_driver
(
&
wm8753_i2c_driver
);
}
#endif
#if defined(CONFIG_SPI_MASTER)
spi_unregister_driver
(
&
wm8753_spi_driver
);
if
(
setup
->
spi
)
spi_unregister_driver
(
&
wm8753_spi_driver
);
#endif
kfree
(
codec
->
private_data
);
kfree
(
codec
);
...
...
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