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
7497185f
Commit
7497185f
authored
Jul 15, 2013
by
Mark Brown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ASoC: samsung-spdif: Convert to devm_clk_get()
Signed-off-by:
Mark Brown
<
broonie@linaro.org
>
parent
ad81f054
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
6 deletions
+2
-6
sound/soc/samsung/spdif.c
sound/soc/samsung/spdif.c
+2
-6
No files found.
sound/soc/samsung/spdif.c
View file @
7497185f
...
@@ -395,7 +395,7 @@ static int spdif_probe(struct platform_device *pdev)
...
@@ -395,7 +395,7 @@ static int spdif_probe(struct platform_device *pdev)
spin_lock_init
(
&
spdif
->
lock
);
spin_lock_init
(
&
spdif
->
lock
);
spdif
->
pclk
=
clk_get
(
&
pdev
->
dev
,
"spdif"
);
spdif
->
pclk
=
devm_
clk_get
(
&
pdev
->
dev
,
"spdif"
);
if
(
IS_ERR
(
spdif
->
pclk
))
{
if
(
IS_ERR
(
spdif
->
pclk
))
{
dev_err
(
&
pdev
->
dev
,
"failed to get peri-clock
\n
"
);
dev_err
(
&
pdev
->
dev
,
"failed to get peri-clock
\n
"
);
ret
=
-
ENOENT
;
ret
=
-
ENOENT
;
...
@@ -403,7 +403,7 @@ static int spdif_probe(struct platform_device *pdev)
...
@@ -403,7 +403,7 @@ static int spdif_probe(struct platform_device *pdev)
}
}
clk_prepare_enable
(
spdif
->
pclk
);
clk_prepare_enable
(
spdif
->
pclk
);
spdif
->
sclk
=
clk_get
(
&
pdev
->
dev
,
"sclk_spdif"
);
spdif
->
sclk
=
devm_
clk_get
(
&
pdev
->
dev
,
"sclk_spdif"
);
if
(
IS_ERR
(
spdif
->
sclk
))
{
if
(
IS_ERR
(
spdif
->
sclk
))
{
dev_err
(
&
pdev
->
dev
,
"failed to get internal source clock
\n
"
);
dev_err
(
&
pdev
->
dev
,
"failed to get internal source clock
\n
"
);
ret
=
-
ENOENT
;
ret
=
-
ENOENT
;
...
@@ -457,10 +457,8 @@ static int spdif_probe(struct platform_device *pdev)
...
@@ -457,10 +457,8 @@ static int spdif_probe(struct platform_device *pdev)
release_mem_region
(
mem_res
->
start
,
resource_size
(
mem_res
));
release_mem_region
(
mem_res
->
start
,
resource_size
(
mem_res
));
err2:
err2:
clk_disable_unprepare
(
spdif
->
sclk
);
clk_disable_unprepare
(
spdif
->
sclk
);
clk_put
(
spdif
->
sclk
);
err1:
err1:
clk_disable_unprepare
(
spdif
->
pclk
);
clk_disable_unprepare
(
spdif
->
pclk
);
clk_put
(
spdif
->
pclk
);
err0:
err0:
return
ret
;
return
ret
;
}
}
...
@@ -480,9 +478,7 @@ static int spdif_remove(struct platform_device *pdev)
...
@@ -480,9 +478,7 @@ static int spdif_remove(struct platform_device *pdev)
release_mem_region
(
mem_res
->
start
,
resource_size
(
mem_res
));
release_mem_region
(
mem_res
->
start
,
resource_size
(
mem_res
));
clk_disable_unprepare
(
spdif
->
sclk
);
clk_disable_unprepare
(
spdif
->
sclk
);
clk_put
(
spdif
->
sclk
);
clk_disable_unprepare
(
spdif
->
pclk
);
clk_disable_unprepare
(
spdif
->
pclk
);
clk_put
(
spdif
->
pclk
);
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