Merge tag 'iwlwifi-for-kalle-2016-02-15' of https://git.kernel.org/pub/scm/linux...
[deliverable/linux.git] / arch / arm / mach-ixp4xx / ixdp425-setup.c
index e7b8befa872950c43d7289e12f49ae7850d6c3c9..508c2d7786e2ec8389f97bb55bf446d3e323d198 100644 (file)
@@ -76,8 +76,8 @@ static struct mtd_partition ixdp425_partitions[] = {
 static void
 ixdp425_flash_nand_cmd_ctrl(struct mtd_info *mtd, int cmd, unsigned int ctrl)
 {
-       struct nand_chip *this = mtd->priv;
-       int offset = (int)this->priv;
+       struct nand_chip *this = mtd_to_nand(mtd);
+       int offset = (int)nand_get_controller_data(this);
 
        if (ctrl & NAND_CTRL_CHANGE) {
                if (ctrl & NAND_NCE) {
@@ -88,7 +88,7 @@ ixdp425_flash_nand_cmd_ctrl(struct mtd_info *mtd, int cmd, unsigned int ctrl)
 
                offset = (ctrl & NAND_CLE) ? IXDP425_NAND_CMD_BYTE : 0;
                offset |= (ctrl & NAND_ALE) ? IXDP425_NAND_ADDR_BYTE : 0;
-               this->priv = (void *)offset;
+               nand_set_controller_data(this, (void *)offset);
        }
 
        if (cmd != NAND_CMD_NONE)
This page took 0.024975 seconds and 5 git commands to generate.