summaryrefslogtreecommitdiff
path: root/drivers/dahdi/voicebus
diff options
context:
space:
mode:
authorShaun Ruffell <sruffell@digium.com>2010-09-14 14:02:34 +0000
committerShaun Ruffell <sruffell@digium.com>2010-09-14 14:02:34 +0000
commit7285d63e0c0fd8c3098d3434943957b96562b61b (patch)
tree4125762ac4a3987b2c4bd003df93f138b303647e /drivers/dahdi/voicebus
parent47c24dd98569dc1afc86c7d8f73c0c78e90540d4 (diff)
wcte12xp, wctdm24xxp: Remove redundant vb_enable_io_access.
These three bits are already set by 'pci_enable_device' and 'pci_set_master' calls. Signed-off-by: Shaun Ruffell <sruffell@digium.com> git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@9325 a0bf4364-ded3-4de4-8d8a-66a801d63aff
Diffstat (limited to 'drivers/dahdi/voicebus')
-rw-r--r--drivers/dahdi/voicebus/voicebus.c14
1 files changed, 0 insertions, 14 deletions
diff --git a/drivers/dahdi/voicebus/voicebus.c b/drivers/dahdi/voicebus/voicebus.c
index 351ccc9..274476b 100644
--- a/drivers/dahdi/voicebus/voicebus.c
+++ b/drivers/dahdi/voicebus/voicebus.c
@@ -629,19 +629,6 @@ vb_setsdi(struct voicebus *vb, int addr, u16 val)
spin_unlock_irqrestore(&vb->lock, flags);
}
-static void
-vb_enable_io_access(struct voicebus *vb)
-{
- u32 reg;
- unsigned long flags;
- BUG_ON(!vb->pdev);
- spin_lock_irqsave(&vb->lock, flags);
- pci_read_config_dword(vb->pdev, 0x0004, &reg);
- reg |= 0x00000007;
- pci_write_config_dword(vb->pdev, 0x0004, reg);
- spin_unlock_irqrestore(&vb->lock, flags);
-}
-
/*! \brief Resets the voicebus hardware interface. */
static int
vb_reset_interface(struct voicebus *vb)
@@ -1799,7 +1786,6 @@ __voicebus_init(struct voicebus *vb, const char *board_name,
}
pci_set_master(vb->pdev);
- vb_enable_io_access(vb);
if (vb_reset_interface(vb)) {
retval = -EIO;