Re: [PATCH] PCI and I2C fixes for 2.6.8

Greg KH
2004-08-23T19:48:00Z

ChangeSet 1.1790.2.8, 2004/08/02 15:35:52-07:00, nacc@us.ibm.com

[PATCH] PCI Hotplug: ibmphp_core: replace long_delay() with msleep()

Replace long_delay() with msleep() to guarantee the task
delays as desired.

Signed-off-by: Nishanth Aravamudan <nacc@us.ibm.com>
Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>

drivers/pci/hotplug/ibmphp_core.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)

diff -Nru a/drivers/pci/hotplug/ibmphp_core.c b/drivers/pci/hotplug/ibmphp_core.c
--- a/drivers/pci/hotplug/ibmphp_core.c 2004-08-23 11:08:11 -07:00
+++ b/drivers/pci/hotplug/ibmphp_core.c 2004-08-23 11:08:11 -07:00
@@ -190,7 +190,7 @@
err ("command not completed successfully in power_on\n");
return -EIO;
}
- long_delay (3 * HZ); /* For ServeRAID cards, and some 66 PCI */
+ msleep(3000); /* For ServeRAID cards, and some 66 PCI */
return 0;
}

@@ -913,7 +913,7 @@
}
/* This is for x440, once Brandon fixes the firmware,
will not need this delay */
- long_delay (1 * HZ);
+ msleep(1000);
debug ("%s -Exit\n", __FUNCTION__);
return 0;
}