mtd: nand: gpmi: use the mtd instance embedded in struct nand_chip
[deliverable/linux.git] / drivers / mtd / nand / sharpsl.c
index 082b6009736d921e0215c59854baeb3ee0ae3ec4..84129e539930182e5710ca27dcd4cc8fbcbd4562 100644 (file)
@@ -66,7 +66,7 @@ static void sharpsl_nand_hwcontrol(struct mtd_info *mtd, int cmd,
                                   unsigned int ctrl)
 {
        struct sharpsl_nand *sharpsl = mtd_to_sharpsl(mtd);
-       struct nand_chip *chip = mtd->priv;
+       struct nand_chip *chip = mtd_to_nand(mtd);
 
        if (ctrl & NAND_CTRL_CHANGE) {
                unsigned char bits = ctrl & 0x07;
This page took 0.024755 seconds and 5 git commands to generate.