mtd: nand: Update mtd.name assignment type to u64 for IFC, eLBC
authorPrabhakar Kushwaha <prabhakar@freescale.com>
Sat, 28 Dec 2013 06:47:35 +0000 (12:17 +0530)
committerBrian Norris <computersforpeace@gmail.com>
Sat, 11 Jan 2014 20:07:35 +0000 (12:07 -0800)
mtd.name is assigned to IFC NAND physical address. Assignment type is u32.
It is not providing correct physical address of IFC NAND.

Update assignment type to u64.

Signed-off-by: Prabhakar Kushwaha <prabhakar@freescale.com>
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
drivers/mtd/nand/fsl_elbc_nand.c
drivers/mtd/nand/fsl_ifc_nand.c

index d32f1d3b52f7fa3f44ac33dadb7d560b1c091682..bcf60800c3ce7f5e0489972ebe7a3e3f83d225df 100644 (file)
@@ -874,7 +874,7 @@ static int fsl_elbc_nand_probe(struct platform_device *pdev)
                goto err;
        }
 
-       priv->mtd.name = kasprintf(GFP_KERNEL, "%x.flash", (unsigned)res.start);
+       priv->mtd.name = kasprintf(GFP_KERNEL, "%llx.flash", (u64)res.start);
        if (!priv->mtd.name) {
                ret = -ENOMEM;
                goto err;
index 33440803cf6247412e7d443b1a58a66443160197..90ca7e75d6f038e4cefb365ee2a436eac4ac8cc2 100644 (file)
@@ -1100,7 +1100,7 @@ static int fsl_ifc_nand_probe(struct platform_device *dev)
                    IFC_NAND_EVTER_INTR_FTOERIR_EN |
                    IFC_NAND_EVTER_INTR_WPERIR_EN,
                    &ifc->ifc_nand.nand_evter_intr_en);
-       priv->mtd.name = kasprintf(GFP_KERNEL, "%x.flash", (unsigned)res.start);
+       priv->mtd.name = kasprintf(GFP_KERNEL, "%llx.flash", (u64)res.start);
        if (!priv->mtd.name) {
                ret = -ENOMEM;
                goto err;