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
8516e648
Commit
8516e648
authored
Sep 27, 2013
by
Mark Brown
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'asoc/fix/fsl' into asoc-linus
parents
aab5d23e
50d4a790
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
sound/soc/fsl/imx-sgtl5000.c
sound/soc/fsl/imx-sgtl5000.c
+5
-2
No files found.
sound/soc/fsl/imx-sgtl5000.c
View file @
8516e648
...
...
@@ -62,7 +62,7 @@ static int imx_sgtl5000_probe(struct platform_device *pdev)
struct
device_node
*
ssi_np
,
*
codec_np
;
struct
platform_device
*
ssi_pdev
;
struct
i2c_client
*
codec_dev
;
struct
imx_sgtl5000_data
*
data
;
struct
imx_sgtl5000_data
*
data
=
NULL
;
int
int_port
,
ext_port
;
int
ret
;
...
...
@@ -128,7 +128,7 @@ static int imx_sgtl5000_probe(struct platform_device *pdev)
goto
fail
;
}
data
->
codec_clk
=
devm_
clk_get
(
&
codec_dev
->
dev
,
NULL
);
data
->
codec_clk
=
clk_get
(
&
codec_dev
->
dev
,
NULL
);
if
(
IS_ERR
(
data
->
codec_clk
))
{
ret
=
PTR_ERR
(
data
->
codec_clk
);
goto
fail
;
...
...
@@ -172,6 +172,8 @@ static int imx_sgtl5000_probe(struct platform_device *pdev)
return
0
;
fail:
if
(
data
&&
!
IS_ERR
(
data
->
codec_clk
))
clk_put
(
data
->
codec_clk
);
if
(
ssi_np
)
of_node_put
(
ssi_np
);
if
(
codec_np
)
...
...
@@ -185,6 +187,7 @@ static int imx_sgtl5000_remove(struct platform_device *pdev)
struct
imx_sgtl5000_data
*
data
=
platform_get_drvdata
(
pdev
);
snd_soc_unregister_card
(
&
data
->
card
);
clk_put
(
data
->
codec_clk
);
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