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
7c9e0617
Commit
7c9e0617
authored
Jul 23, 2013
by
Mark Brown
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'asoc/fix/atmel' into asoc-linus
parents
3b2f64d0
9a9b1c61
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
3 deletions
+8
-3
drivers/misc/atmel-ssc.c
drivers/misc/atmel-ssc.c
+8
-3
No files found.
drivers/misc/atmel-ssc.c
View file @
7c9e0617
...
...
@@ -66,14 +66,19 @@ EXPORT_SYMBOL(ssc_request);
void
ssc_free
(
struct
ssc_device
*
ssc
)
{
bool
disable_clk
=
true
;
spin_lock
(
&
user_lock
);
if
(
ssc
->
user
)
{
if
(
ssc
->
user
)
ssc
->
user
--
;
clk_disable_unprepare
(
ssc
->
clk
);
}
else
{
else
{
disable_clk
=
false
;
dev_dbg
(
&
ssc
->
pdev
->
dev
,
"device already free
\n
"
);
}
spin_unlock
(
&
user_lock
);
if
(
disable_clk
)
clk_disable_unprepare
(
ssc
->
clk
);
}
EXPORT_SYMBOL
(
ssc_free
);
...
...
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