diff options
Diffstat (limited to 'drivers/mtd')
-rw-r--r-- | drivers/mtd/nand/fsl_ifc_nand.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/mtd/nand/fsl_ifc_nand.c b/drivers/mtd/nand/fsl_ifc_nand.c index 4c05f4f6a5c6..51394e59901b 100644 --- a/drivers/mtd/nand/fsl_ifc_nand.c +++ b/drivers/mtd/nand/fsl_ifc_nand.c | |||
@@ -317,7 +317,7 @@ static void fsl_ifc_run_command(struct mtd_info *mtd) | |||
317 | 317 | ||
318 | /* wait for command complete flag or timeout */ | 318 | /* wait for command complete flag or timeout */ |
319 | wait_event_timeout(ctrl->nand_wait, ctrl->nand_stat, | 319 | wait_event_timeout(ctrl->nand_wait, ctrl->nand_stat, |
320 | IFC_TIMEOUT_MSECS * HZ/1000); | 320 | msecs_to_jiffies(IFC_TIMEOUT_MSECS)); |
321 | 321 | ||
322 | /* ctrl->nand_stat will be updated from IRQ context */ | 322 | /* ctrl->nand_stat will be updated from IRQ context */ |
323 | if (!ctrl->nand_stat) | 323 | if (!ctrl->nand_stat) |
@@ -860,7 +860,7 @@ static void fsl_ifc_sram_init(struct fsl_ifc_mtd *priv) | |||
860 | 860 | ||
861 | /* wait for command complete flag or timeout */ | 861 | /* wait for command complete flag or timeout */ |
862 | wait_event_timeout(ctrl->nand_wait, ctrl->nand_stat, | 862 | wait_event_timeout(ctrl->nand_wait, ctrl->nand_stat, |
863 | IFC_TIMEOUT_MSECS * HZ/1000); | 863 | msecs_to_jiffies(IFC_TIMEOUT_MSECS)); |
864 | 864 | ||
865 | if (ctrl->nand_stat != IFC_NAND_EVTER_STAT_OPC) | 865 | if (ctrl->nand_stat != IFC_NAND_EVTER_STAT_OPC) |
866 | printk(KERN_ERR "fsl-ifc: Failed to Initialise SRAM\n"); | 866 | printk(KERN_ERR "fsl-ifc: Failed to Initialise SRAM\n"); |