Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 243277
b: refs/heads/master
c: 7222f39
h: refs/heads/master
i:
  243275: 1233d76
v: v3
  • Loading branch information
Thomas Gleixner committed Mar 29, 2011
1 parent 0c4e814 commit 4ce5dee
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 15 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: e83bbb115e3afc87bdb1d375d33bcfe910920002
refs/heads/master: 7222f3912fe3f00cdca0a6db16708af281ff97b6
5 changes: 2 additions & 3 deletions trunk/arch/arm/plat-samsung/irq-uart.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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);
}

/**
Expand Down
11 changes: 4 additions & 7 deletions trunk/arch/arm/plat-samsung/irq-vic-timer.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
8 changes: 4 additions & 4 deletions trunk/arch/arm/plat-samsung/wakeup-mask.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
void samsung_sync_wakemask(void __iomem *reg,
struct samsung_wakeup_mask *mask, int nr_mask)
{
struct irq_desc *desc;
struct irq_data *data;
u32 val;

val = __raw_readl(reg);
Expand All @@ -33,10 +33,10 @@ void samsung_sync_wakemask(void __iomem *reg,
continue;
}

desc = irq_to_desc(mask->irq);
data = irq_get_irq_data(mask->irq);

/* bit of a liberty to read this directly from irq_desc. */
if (desc->wake_depth > 0)
/* bit of a liberty to read this directly from irq_data. */
if (irqd_is_wakeup_set(data))
val &= ~mask->bit;
else
val |= mask->bit;
Expand Down

0 comments on commit 4ce5dee

Please sign in to comment.