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
6f5ad963
Commit
6f5ad963
authored
Sep 22, 2011
by
Russell King
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
clk: timer-sp: convert to clk_prepare()/clk_unprepare()
Signed-off-by:
Russell King
<
rmk+kernel@arm.linux.org.uk
>
parent
72ae00c9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
0 deletions
+9
-0
arch/arm/common/timer-sp.c
arch/arm/common/timer-sp.c
+9
-0
No files found.
arch/arm/common/timer-sp.c
View file @
6f5ad963
...
...
@@ -41,9 +41,17 @@ static long __init sp804_get_clock_rate(const char *name)
return
PTR_ERR
(
clk
);
}
err
=
clk_prepare
(
clk
);
if
(
err
)
{
pr_err
(
"sp804: %s clock failed to prepare: %d
\n
"
,
name
,
err
);
clk_put
(
clk
);
return
err
;
}
err
=
clk_enable
(
clk
);
if
(
err
)
{
pr_err
(
"sp804: %s clock failed to enable: %d
\n
"
,
name
,
err
);
clk_unprepare
(
clk
);
clk_put
(
clk
);
return
err
;
}
...
...
@@ -52,6 +60,7 @@ static long __init sp804_get_clock_rate(const char *name)
if
(
rate
<
0
)
{
pr_err
(
"sp804: %s clock failed to get rate: %ld
\n
"
,
name
,
rate
);
clk_disable
(
clk
);
clk_unprepare
(
clk
);
clk_put
(
clk
);
}
...
...
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