|
@@ -317,7 +317,7 @@ static void fsl_ifc_run_command(struct mtd_info *mtd)
|
|
|
|
|
|
/* wait for command complete flag or timeout */
|
|
|
wait_event_timeout(ctrl->nand_wait, ctrl->nand_stat,
|
|
|
- IFC_TIMEOUT_MSECS * HZ/1000);
|
|
|
+ msecs_to_jiffies(IFC_TIMEOUT_MSECS));
|
|
|
|
|
|
/* ctrl->nand_stat will be updated from IRQ context */
|
|
|
if (!ctrl->nand_stat)
|
|
@@ -860,7 +860,7 @@ static void fsl_ifc_sram_init(struct fsl_ifc_mtd *priv)
|
|
|
|
|
|
/* wait for command complete flag or timeout */
|
|
|
wait_event_timeout(ctrl->nand_wait, ctrl->nand_stat,
|
|
|
- IFC_TIMEOUT_MSECS * HZ/1000);
|
|
|
+ msecs_to_jiffies(IFC_TIMEOUT_MSECS));
|
|
|
|
|
|
if (ctrl->nand_stat != IFC_NAND_EVTER_STAT_OPC)
|
|
|
printk(KERN_ERR "fsl-ifc: Failed to Initialise SRAM\n");
|