diff options
Diffstat (limited to 'drivers/mtd')
-rw-r--r-- | drivers/mtd/nand/s3c2410.c | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/drivers/mtd/nand/s3c2410.c b/drivers/mtd/nand/s3c2410.c index fd78fb83549e..2c262fe03d8a 100644 --- a/drivers/mtd/nand/s3c2410.c +++ b/drivers/mtd/nand/s3c2410.c | |||
@@ -268,20 +268,16 @@ static void s3c2410_nand_select_chip(struct mtd_info *mtd, int chip) | |||
268 | clk_disable(info->clk); | 268 | clk_disable(info->clk); |
269 | } | 269 | } |
270 | 270 | ||
271 | /* command and control functions | 271 | /* s3c2410_nand_hwcontrol |
272 | * | ||
273 | * Note, these all use tglx's method of changing the IO_ADDR_W field | ||
274 | * to make the code simpler, and use the nand layer's code to issue the | ||
275 | * command and address sequences via the proper IO ports. | ||
276 | * | 272 | * |
273 | * Issue command and address cycles to the chip | ||
277 | */ | 274 | */ |
278 | 275 | ||
279 | static void s3c2410_nand_hwcontrol(struct mtd_info *mtd, int cmd, | 276 | static void s3c2410_nand_hwcontrol(struct mtd_info *mtd, int cmd, |
280 | unsigned int ctrl) | 277 | unsigned int ctrl) |
281 | { | 278 | { |
282 | struct s3c2410_nand_info *info = s3c2410_nand_mtd_toinfo(mtd); | 279 | struct s3c2410_nand_info *info = s3c2410_nand_mtd_toinfo(mtd); |
283 | struct nand_chip *chip = mtd->priv; | 280 | |
284 | |||
285 | if (cmd == NAND_CMD_NONE) | 281 | if (cmd == NAND_CMD_NONE) |
286 | return; | 282 | return; |
287 | 283 | ||
@@ -297,7 +293,6 @@ static void s3c2440_nand_hwcontrol(struct mtd_info *mtd, int cmd, | |||
297 | unsigned int ctrl) | 293 | unsigned int ctrl) |
298 | { | 294 | { |
299 | struct s3c2410_nand_info *info = s3c2410_nand_mtd_toinfo(mtd); | 295 | struct s3c2410_nand_info *info = s3c2410_nand_mtd_toinfo(mtd); |
300 | struct nand_chip *chip = mtd->priv; | ||
301 | 296 | ||
302 | if (cmd == NAND_CMD_NONE) | 297 | if (cmd == NAND_CMD_NONE) |
303 | return; | 298 | return; |