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
7222f391
Commit
7222f391
authored
Mar 24, 2011
by
Thomas Gleixner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
arm: plat-samsung: Use proper irq accessor functions
Signed-off-by:
Thomas Gleixner
<
tglx@linutronix.de
>
parent
e83bbb11
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
14 deletions
+10
-14
arch/arm/plat-samsung/irq-uart.c
arch/arm/plat-samsung/irq-uart.c
+2
-3
arch/arm/plat-samsung/irq-vic-timer.c
arch/arm/plat-samsung/irq-vic-timer.c
+4
-7
arch/arm/plat-samsung/wakeup-mask.c
arch/arm/plat-samsung/wakeup-mask.c
+4
-4
No files found.
arch/arm/plat-samsung/irq-uart.c
View file @
7222f391
...
...
@@ -107,7 +107,6 @@ static struct irq_chip s3c_irq_uart = {
static
void
__init
s3c_init_uart_irq
(
struct
s3c_uart_irq
*
uirq
)
{
struct
irq_desc
*
desc
=
irq_to_desc
(
uirq
->
parent_irq
);
void
__iomem
*
reg_base
=
uirq
->
regs
;
unsigned
int
irq
;
int
offs
;
...
...
@@ -124,8 +123,8 @@ static void __init s3c_init_uart_irq(struct s3c_uart_irq *uirq)
set_irq_flags
(
irq
,
IRQF_VALID
);
}
desc
->
irq_data
.
handler_data
=
uirq
;
set_irq
_chained_handler
(
uirq
->
parent_irq
,
s3c_irq_demux_uart
);
irq_set_handler_data
(
uirq
->
parent_irq
,
uirq
)
;
irq_set
_chained_handler
(
uirq
->
parent_irq
,
s3c_irq_demux_uart
);
}
/**
...
...
arch/arm/plat-samsung/irq-vic-timer.c
View file @
7222f391
...
...
@@ -77,14 +77,11 @@ static struct irq_chip s3c_irq_timer = {
void
__init
s3c_init_vic_timer_irq
(
unsigned
int
parent_irq
,
unsigned
int
timer_irq
)
{
struct
irq_desc
*
desc
=
irq_to_desc
(
parent_irq
);
set_irq_chained_handler
(
parent_irq
,
s3c_irq_demux_vic_timer
);
irq_set_chained_handler
(
parent_irq
,
s3c_irq_demux_vic_timer
);
irq_set_handler_data
(
parent_irq
,
(
void
*
)
timer_irq
);
set_irq_chip
(
timer_irq
,
&
s3c_irq_timer
);
set_irq_chip_data
(
timer_irq
,
(
void
*
)(
1
<<
(
timer_irq
-
IRQ_TIMER0
)));
set_irq_handler
(
timer_irq
,
handle_level_irq
);
irq_set_chip_and_handler
(
timer_irq
,
&
s3c_irq_timer
,
handle_level_irq
);
irq_set_chip_data
(
timer_irq
,
(
void
*
)(
1
<<
(
timer_irq
-
IRQ_TIMER0
)));
set_irq_flags
(
timer_irq
,
IRQF_VALID
);
desc
->
irq_data
.
handler_data
=
(
void
*
)
timer_irq
;
}
arch/arm/plat-samsung/wakeup-mask.c
View file @
7222f391
...
...
@@ -22,7 +22,7 @@
void
samsung_sync_wakemask
(
void
__iomem
*
reg
,
struct
samsung_wakeup_mask
*
mask
,
int
nr_mask
)
{
struct
irq_d
esc
*
desc
;
struct
irq_d
ata
*
data
;
u32
val
;
val
=
__raw_readl
(
reg
);
...
...
@@ -33,10 +33,10 @@ void samsung_sync_wakemask(void __iomem *reg,
continue
;
}
d
esc
=
irq_to_desc
(
mask
->
irq
);
d
ata
=
irq_get_irq_data
(
mask
->
irq
);
/* bit of a liberty to read this directly from irq_d
esc
. */
if
(
desc
->
wake_depth
>
0
)
/* bit of a liberty to read this directly from irq_d
ata
. */
if
(
irqd_is_wakeup_set
(
data
)
)
val
&=
~
mask
->
bit
;
else
val
|=
mask
->
bit
;
...
...
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