Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 30927
b: refs/heads/master
c: 99974c6
h: refs/heads/master
i:
  30925: 7e297f9
  30923: 13fdb24
  30919: 4900892
  30911: 35b02d7
v: v3
  • Loading branch information
Ben Dooks authored and Thomas Gleixner committed Jun 21, 2006
1 parent 8c17c78 commit 1118c25
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 0d420f9d6111b3a2fb7d5dd0180456eed469055d
refs/heads/master: 99974c62b6acd4093b6f485132067089c39f967c
10 changes: 4 additions & 6 deletions trunk/drivers/mtd/nand/s3c2410.c
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,6 @@
#include <asm/arch/regs-nand.h>
#include <asm/arch/nand.h>

#define PFX "s3c2410-nand: "

#ifdef CONFIG_MTD_NAND_S3C2410_HWECC
static int hardware_ecc = 1;
#else
Expand Down Expand Up @@ -195,11 +193,11 @@ static int s3c2410_nand_inithw(struct s3c2410_nand_info *info, struct platform_d
}

if (tacls < 0 || twrph0 < 0 || twrph1 < 0) {
printk(KERN_ERR PFX "cannot get timings suitable for board\n");
dev_err(info->device, "cannot get suitable timings\n");
return -EINVAL;
}

printk(KERN_INFO PFX "Tacls=%d, %dns Twrph0=%d %dns, Twrph1=%d %dns\n",
dev_info(info->device, "Tacls=%d, %dns Twrph0=%d %dns, Twrph1=%d %dns\n",
tacls, to_ns(tacls, clkrate), twrph0, to_ns(twrph0, clkrate), twrph1, to_ns(twrph1, clkrate));

if (!info->is_s3c2440) {
Expand All @@ -218,7 +216,7 @@ static int s3c2410_nand_inithw(struct s3c2410_nand_info *info, struct platform_d
info->regs + S3C2440_NFCONT);
}

pr_debug(PFX "NF_CONF is 0x%lx\n", cfg);
dev_dbg(info->device, "NF_CONF is 0x%lx\n", cfg);

writel(cfg, info->regs + S3C2410_NFCONF);
return 0;
Expand Down Expand Up @@ -250,7 +248,7 @@ static void s3c2410_nand_select_chip(struct mtd_info *mtd, int chip)
cur |= bit;
} else {
if (nmtd->set != NULL && chip > nmtd->set->nr_chips) {
printk(KERN_ERR PFX "chip %d out of range\n", chip);
dev_err(info->device, "invalid chip %d\n", chip);
return;
}

Expand Down

0 comments on commit 1118c25

Please sign in to comment.