Author: cgutman
Date: Wed Feb 29 05:01:31 2012
New Revision: 55911

URL: http://svn.reactos.org/svn/reactos?rev=55911&view=rev
Log:
- Missed this bit

Modified:
    trunk/reactos/drivers/usb/usbehci/hardware.cpp

Modified: trunk/reactos/drivers/usb/usbehci/hardware.cpp
URL: 
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/usb/usbehci/hardware.cpp?rev=55911&r1=55910&r2=55911&view=diff
==============================================================================
--- trunk/reactos/drivers/usb/usbehci/hardware.cpp [iso-8859-1] (original)
+++ trunk/reactos/drivers/usb/usbehci/hardware.cpp [iso-8859-1] Wed Feb 29 
05:01:31 2012
@@ -202,39 +202,6 @@
     m_VendorID = PciConfig.VendorID;
     m_DeviceID = PciConfig.DeviceID;
 
-
-    if (PciConfig.Command & PCI_ENABLE_BUS_MASTER)
-    {
-        //
-        // master is enabled
-        //
-        return STATUS_SUCCESS;
-    }
-
-     DPRINT1("PCI Configuration shows this as a non Bus Mastering device! 
Enabling...\n");
-
-     PciConfig.Command |= PCI_ENABLE_BUS_MASTER;
-     m_BusInterface.SetBusData(m_BusInterface.Context, PCI_WHICHSPACE_CONFIG, 
&PciConfig, 0, PCI_COMMON_HDR_LENGTH);
-
-     BytesRead = (*m_BusInterface.GetBusData)(m_BusInterface.Context,
-                                            PCI_WHICHSPACE_CONFIG,
-                                            &PciConfig,
-                                            0,
-                                            PCI_COMMON_HDR_LENGTH);
-
-    if (BytesRead != PCI_COMMON_HDR_LENGTH)
-    {
-        DPRINT1("Failed to get pci config information!\n");
-        ASSERT(FALSE);
-        return STATUS_SUCCESS;
-    }
-
-    if (!(PciConfig.Command & PCI_ENABLE_BUS_MASTER))
-    {
-        PciConfig.Command |= PCI_ENABLE_BUS_MASTER;
-        DPRINT1("Failed to enable master\n");
-        return STATUS_UNSUCCESSFUL;
-    }
     return STATUS_SUCCESS;
 }
 


Reply via email to