Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 219579
b: refs/heads/master
c: 2803a1c
h: refs/heads/master
i:
  219577: 7120370
  219575: d00fc80
v: v3
  • Loading branch information
Paul Mundt committed Oct 27, 2010
1 parent e59ae66 commit a13c8ec
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 9 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: 8df3a615da1a9fee6c3e0dc561e56a499072213f
refs/heads/master: 2803a1c681a808a7893539fa0b85558b2afc471a
15 changes: 7 additions & 8 deletions trunk/arch/sh/boards/mach-landisk/irq.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,25 +18,24 @@
#include <linux/io.h>
#include <mach-landisk/mach/iodata_landisk.h>

static void disable_landisk_irq(unsigned int irq)
static void disable_landisk_irq(struct irq_data *data)
{
unsigned char mask = 0xff ^ (0x01 << (irq - 5));
unsigned char mask = 0xff ^ (0x01 << (data->irq - 5));

__raw_writeb(__raw_readb(PA_IMASK) & mask, PA_IMASK);
}

static void enable_landisk_irq(unsigned int irq)
static void enable_landisk_irq(struct irq_data *data)
{
unsigned char value = (0x01 << (irq - 5));
unsigned char value = (0x01 << (data->irq - 5));

__raw_writeb(__raw_readb(PA_IMASK) | value, PA_IMASK);
}

static struct irq_chip landisk_irq_chip __read_mostly = {
.name = "LANDISK",
.mask = disable_landisk_irq,
.unmask = enable_landisk_irq,
.mask_ack = disable_landisk_irq,
.irq_mask = disable_landisk_irq,
.irq_unmask = enable_landisk_irq,
};

/*
Expand All @@ -50,7 +49,7 @@ void __init init_landisk_IRQ(void)
disable_irq_nosync(i);
set_irq_chip_and_handler_name(i, &landisk_irq_chip,
handle_level_irq, "level");
enable_landisk_irq(i);
enable_landisk_irq(irq_get_irq_data(i));
}
__raw_writeb(0x00, PA_PWRINT_CLR);
}

0 comments on commit a13c8ec

Please sign in to comment.