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
a821b279
Commit
a821b279
authored
Mar 24, 2011
by
Thomas Gleixner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sh: Use the proper accessor functions
Signed-off-by:
Thomas Gleixner
<
tglx@linutronix.de
>
parent
433c9c67
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
9 deletions
+3
-9
arch/sh/boards/mach-se/7206/irq.c
arch/sh/boards/mach-se/7206/irq.c
+1
-2
drivers/sh/intc/core.c
drivers/sh/intc/core.c
+2
-7
No files found.
arch/sh/boards/mach-se/7206/irq.c
View file @
a821b279
...
...
@@ -92,9 +92,8 @@ static void eoi_se7206_irq(struct irq_data *data)
{
unsigned
short
sts0
,
sts1
;
unsigned
int
irq
=
data
->
irq
;
struct
irq_desc
*
desc
=
irq_to_desc
(
irq
);
if
(
!
(
desc
->
status
&
(
IRQ_DISABLED
|
IRQ_INPROGRESS
)
))
if
(
!
irqd_irq_disabled
(
data
)
&&
!
irqd_irq_inprogress
(
data
))
enable_se7206_irq
(
data
);
/* FPGA isr clear */
sts0
=
__raw_readw
(
INTSTS0
);
...
...
drivers/sh/intc/core.c
View file @
a821b279
...
...
@@ -387,19 +387,16 @@ static int intc_suspend(void)
/* enable wakeup irqs belonging to this intc controller */
for_each_active_irq
(
irq
)
{
struct
irq_data
*
data
;
struct
irq_desc
*
desc
;
struct
irq_chip
*
chip
;
data
=
irq_get_irq_data
(
irq
);
chip
=
irq_data_get_irq_chip
(
data
);
if
(
chip
!=
&
d
->
chip
)
continue
;
desc
=
irq_to_desc
(
irq
);
if
((
desc
->
status
&
IRQ_WAKEUP
))
if
(
irqd_is_wakeup_set
(
data
))
chip
->
irq_enable
(
data
);
}
}
return
0
;
}
...
...
@@ -412,7 +409,6 @@ static void intc_resume(void)
for_each_active_irq
(
irq
)
{
struct
irq_data
*
data
;
struct
irq_desc
*
desc
;
struct
irq_chip
*
chip
;
data
=
irq_get_irq_data
(
irq
);
...
...
@@ -423,8 +419,7 @@ static void intc_resume(void)
*/
if
(
chip
!=
&
d
->
chip
)
continue
;
desc
=
irq_to_desc
(
irq
);
if
(
desc
->
status
&
IRQ_DISABLED
)
if
(
irqd_irq_disabled
(
data
))
chip
->
irq_disable
(
data
);
else
chip
->
irq_enable
(
data
);
...
...
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