mtd: gpmi: do not get the clock frequency in gpmi_begin()
authorHuang Shijie <b32955@freescale.com>
Thu, 13 Sep 2012 06:57:55 +0000 (14:57 +0800)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Sat, 29 Sep 2012 14:55:05 +0000 (15:55 +0100)
commitae70ba2d6078d60c527c93076133accf59becaf8
tree16def618f017b65e54e7d79391a37002e1607459
parentddab3838aa3332ed2c8ea96accbed5218a2a72b7
mtd: gpmi: do not get the clock frequency in gpmi_begin()

The current code will gets the clock frequency which is used by
gpmi_nfc_compute_hardware_timing(). It makes the code a little mess.

So move the `get clock frequency` code to the
gpmi_nfc_compute_hardware_timing() itself. This makes the code tidy
and clean.

This patch also uses the macro NSEC_PER_SEC to replace the `1000000000`.

Signed-off-by: Huang Shijie <b32955@freescale.com>
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
drivers/mtd/nand/gpmi-nand/gpmi-lib.c