Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 325229
b: refs/heads/master
c: 9b27adb
h: refs/heads/master
i:
  325227: 2c4cadd
v: v3
  • Loading branch information
Jens Taprogge authored and Greg Kroah-Hartman committed Sep 12, 2012
1 parent b4e0ccc commit 43992ce
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 26 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: 0118681b2bc2f182b7cd4c6569632cf2729cc73e
refs/heads/master: 9b27adbced2455bfd7e5d1b76a7f151de3d25dec
31 changes: 6 additions & 25 deletions trunk/drivers/staging/ipack/bridges/tpci200.c
Original file line number Diff line number Diff line change
Expand Up @@ -278,37 +278,18 @@ static int tpci200_register(struct tpci200_board *tpci200)
static int __tpci200_request_irq(struct tpci200_board *tpci200,
struct ipack_device *dev)
{
unsigned short slot_ctrl;

/* Set the default parameters of the slot
* INT0 enabled, level sensitive
* INT1 enabled, level sensitive
* error interrupt disabled
* timeout interrupt disabled
* recover time disabled
* clock rate 8 MHz
*/
slot_ctrl = TPCI200_INT0_EN | TPCI200_INT1_EN;
writew(slot_ctrl, &tpci200->info->interface_regs->control[dev->slot]);

__tpci200_set_mask(
&tpci200->info->interface_regs->control[dev->slot],
TPCI200_INT0_EN | TPCI200_INT1_EN);
return 0;
}

static void __tpci200_free_irq(struct tpci200_board *tpci200,
struct ipack_device *dev)
{
unsigned short slot_ctrl;

/* Set the default parameters of the slot
* INT0 disabled, level sensitive
* INT1 disabled, level sensitive
* error interrupt disabled
* timeout interrupt disabled
* recover time disabled
* clock rate 8 MHz
*/
slot_ctrl = 0;
writew(slot_ctrl, &tpci200->info->interface_regs->control[dev->slot]);
__tpci200_clear_mask(
&tpci200->info->interface_regs->control[dev->slot],
TPCI200_INT0_EN | TPCI200_INT1_EN);
}

static int tpci200_free_irq(struct ipack_device *dev)
Expand Down

0 comments on commit 43992ce

Please sign in to comment.