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
e4bf063c
Commit
e4bf063c
authored
May 30, 2013
by
Mark Brown
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'regulator/fix/dbx500' into regulator-linus
parents
435494ac
3d75095a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
12 deletions
+12
-12
drivers/regulator/dbx500-prcmu.c
drivers/regulator/dbx500-prcmu.c
+12
-12
No files found.
drivers/regulator/dbx500-prcmu.c
View file @
e4bf063c
...
...
@@ -24,18 +24,6 @@
static
int
power_state_active_cnt
;
/* will initialize to zero */
static
DEFINE_SPINLOCK
(
power_state_active_lock
);
int
power_state_active_get
(
void
)
{
unsigned
long
flags
;
int
cnt
;
spin_lock_irqsave
(
&
power_state_active_lock
,
flags
);
cnt
=
power_state_active_cnt
;
spin_unlock_irqrestore
(
&
power_state_active_lock
,
flags
);
return
cnt
;
}
void
power_state_active_enable
(
void
)
{
unsigned
long
flags
;
...
...
@@ -65,6 +53,18 @@ int power_state_active_disable(void)
#ifdef CONFIG_REGULATOR_DEBUG
static
int
power_state_active_get
(
void
)
{
unsigned
long
flags
;
int
cnt
;
spin_lock_irqsave
(
&
power_state_active_lock
,
flags
);
cnt
=
power_state_active_cnt
;
spin_unlock_irqrestore
(
&
power_state_active_lock
,
flags
);
return
cnt
;
}
static
struct
ux500_regulator_debug
{
struct
dentry
*
dir
;
struct
dentry
*
status_file
;
...
...
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