[svn-commits] sruffell: branch linux/2.4 r9660 - /linux/branches/2.4/drivers/dahdi/voicebus/
SVN commits to the Digium repositories
svn-commits at lists.digium.com
Thu Jan 20 23:28:17 CST 2011
Author: sruffell
Date: Thu Jan 20 23:28:13 2011
New Revision: 9660
URL: http://svnview.digium.com/svn/dahdi?view=rev&rev=9660
Log:
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 at digium.com>
Origin: http://svnview.digium.com/svn/dahdi?view=rev&rev=9325
Modified:
linux/branches/2.4/drivers/dahdi/voicebus/voicebus.c
Modified: linux/branches/2.4/drivers/dahdi/voicebus/voicebus.c
URL: http://svnview.digium.com/svn/dahdi/linux/branches/2.4/drivers/dahdi/voicebus/voicebus.c?view=diff&rev=9660&r1=9659&r2=9660
==============================================================================
--- linux/branches/2.4/drivers/dahdi/voicebus/voicebus.c (original)
+++ linux/branches/2.4/drivers/dahdi/voicebus/voicebus.c Thu Jan 20 23:28:13 2011
@@ -626,19 +626,6 @@
bits = (0x5 << 12) | (1 << 7) | (addr << 2) | 0x2;
__vb_sdi_sendbits(vb, bits, 16, &sdi);
__vb_sdi_sendbits(vb, val, 16, &sdi);
- 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 |= 0x00000007;
- pci_write_config_dword(vb->pdev, 0x0004, reg);
spin_unlock_irqrestore(&vb->lock, flags);
}
@@ -1799,7 +1786,6 @@
}
pci_set_master(vb->pdev);
- vb_enable_io_access(vb);
if (vb_reset_interface(vb)) {
retval = -EIO;
More information about the svn-commits
mailing list