patch-2.4.20 linux-2.4.20/drivers/hotplug/cpqphp_ctrl.c

Next file: linux-2.4.20/drivers/hotplug/cpqphp_nvram.c
Previous file: linux-2.4.20/drivers/hotplug/cpqphp_core.c
Back to the patch index
Back to the overall index

diff -urN linux-2.4.19/drivers/hotplug/cpqphp_ctrl.c linux-2.4.20/drivers/hotplug/cpqphp_ctrl.c
@@ -1186,7 +1186,7 @@
 		//*********************************
 		rc = CARD_FUNCTIONING;
 	} else {
-		if (ctrl->speed == 1) {
+		if (ctrl->speed == PCI_SPEED_66MHz) {
 			// Wait for exclusive access to hardware
 			down(&ctrl->crit_sect);
 
@@ -1384,7 +1384,7 @@
 	dbg(__FUNCTION__": func->device, slot_offset, hp_slot = %d, %d ,%d\n",
 	    func->device, ctrl->slot_device_offset, hp_slot);
 
-	if (ctrl->speed == 1) {
+	if (ctrl->speed == PCI_SPEED_66MHz) {
 		// Wait for exclusive access to hardware
 		down(&ctrl->crit_sect);
 

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)