 if (info->is_s3c2440) { chip->enable_hwecc  = s3c2440_nand_enable_hwecc; chip->calculate_ecc = s3c2440_nand_calculate_ecc; } 
static void s3c2410_nand_init_chip(struct s3c2410_nand_info *info,				   struct s3c2410_nand_mtd *nmtd,				   struct s3c2410_nand_set *set){	struct nand_chip *chip = &nmtd->chip;	chip->IO_ADDR_R	   = info->regs + S3C2410_NFDATA;	chip->IO_ADDR_W    = info->regs + S3C2410_NFDATA;	chip->hwcontrol    = s3c2410_nand_hwcontrol;	chip->dev_ready    = s3c2410_nand_devready;	chip->write_buf    = s3c2410_nand_write_buf;	chip->read_buf     = s3c2410_nand_read_buf;	chip->select_chip  = s3c2410_nand_select_chip;	chip->chip_delay   = 50;	chip->priv	   = nmtd;	chip->options	   = 0;	chip->controller   = &info->controller;	nmtd->info	   = info;	nmtd->mtd.priv	   = chip;	nmtd->set	   = set;	if (hardware_ecc) {		chip->correct_data  = s3c2410_nand_correct_data;		chip->enable_hwecc  = s3c2410_nand_enable_hwecc;		chip->calculate_ecc = s3c2410_nand_calculate_ecc;		chip->eccmode	    = NAND_ECC_HW3_512;		chip->autooob       = &nand_hw_eccoob;	} else {		chip->eccmode	    = NAND_ECC_SOFT;	}}
4520	/local/tlutelli/issta_data/temp/c/2005_temp/2005/4520/a4f957f16d41b9ff944dddd84c4892496a129f68/s3c2410.c/clean/drivers/mtd/nand/s3c2410.c