diff options
Diffstat (limited to 'arch/arm/mach-omap1/board-h2.c')
| -rw-r--r-- | arch/arm/mach-omap1/board-h2.c | 17 | 
1 files changed, 1 insertions, 16 deletions
diff --git a/arch/arm/mach-omap1/board-h2.c b/arch/arm/mach-omap1/board-h2.c index 553a2e53576..057ec13f064 100644 --- a/arch/arm/mach-omap1/board-h2.c +++ b/arch/arm/mach-omap1/board-h2.c @@ -179,20 +179,6 @@ static struct mtd_partition h2_nand_partitions[] = {  	},  }; -static void h2_nand_cmd_ctl(struct mtd_info *mtd, int cmd, unsigned int ctrl) -{ -	struct nand_chip *this = mtd->priv; -	unsigned long mask; - -	if (cmd == NAND_CMD_NONE) -		return; - -	mask = (ctrl & NAND_CLE) ? 0x02 : 0; -	if (ctrl & NAND_ALE) -		mask |= 0x04; -	writeb(cmd, (unsigned long)this->IO_ADDR_W | mask); -} -  #define H2_NAND_RB_GPIO_PIN	62  static int h2_nand_dev_ready(struct mtd_info *mtd) @@ -212,9 +198,8 @@ static struct platform_nand_data h2_nand_platdata = {  		.part_probe_types	= h2_part_probes,  	},  	.ctrl	= { -		.cmd_ctrl	= h2_nand_cmd_ctl, +		.cmd_ctrl	= omap1_nand_cmd_ctl,  		.dev_ready	= h2_nand_dev_ready, -  	},  };  |