diff options
Diffstat (limited to 'drivers/mtd/chips/cfi_probe.c')
| -rw-r--r-- | drivers/mtd/chips/cfi_probe.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/mtd/chips/cfi_probe.c b/drivers/mtd/chips/cfi_probe.c index 90eb30e06b..e636aa86bc 100644 --- a/drivers/mtd/chips/cfi_probe.c +++ b/drivers/mtd/chips/cfi_probe.c | |||
| @@ -1,7 +1,7 @@ | |||
| 1 | /* | 1 | /* |
| 2 | Common Flash Interface probe code. | 2 | Common Flash Interface probe code. |
| 3 | (C) 2000 Red Hat. GPL'd. | 3 | (C) 2000 Red Hat. GPL'd. |
| 4 | $Id: cfi_probe.c,v 1.84 2005/11/07 11:14:23 gleixner Exp $ | 4 | $Id: cfi_probe.c,v 1.86 2005/11/29 14:48:31 gleixner Exp $ |
| 5 | */ | 5 | */ |
| 6 | 6 | ||
| 7 | #include <linux/config.h> | 7 | #include <linux/config.h> |
| @@ -230,8 +230,8 @@ static int __xipram cfi_chip_setup(struct map_info *map, | |||
| 230 | cfi_send_gen_cmd(0xaa, 0x555, base, map, cfi, cfi->device_type, NULL); | 230 | cfi_send_gen_cmd(0xaa, 0x555, base, map, cfi, cfi->device_type, NULL); |
| 231 | cfi_send_gen_cmd(0x55, 0x2aa, base, map, cfi, cfi->device_type, NULL); | 231 | cfi_send_gen_cmd(0x55, 0x2aa, base, map, cfi, cfi->device_type, NULL); |
| 232 | cfi_send_gen_cmd(0x90, 0x555, base, map, cfi, cfi->device_type, NULL); | 232 | cfi_send_gen_cmd(0x90, 0x555, base, map, cfi, cfi->device_type, NULL); |
| 233 | cfi->mfr = cfi_read_query(map, base); | 233 | cfi->mfr = cfi_read_query16(map, base); |
| 234 | cfi->id = cfi_read_query(map, base + ofs_factor); | 234 | cfi->id = cfi_read_query16(map, base + ofs_factor); |
| 235 | 235 | ||
| 236 | /* Put it back into Read Mode */ | 236 | /* Put it back into Read Mode */ |
| 237 | cfi_send_gen_cmd(0xF0, 0, base, map, cfi, cfi->device_type, NULL); | 237 | cfi_send_gen_cmd(0xF0, 0, base, map, cfi, cfi->device_type, NULL); |
| @@ -426,7 +426,7 @@ static struct mtd_chip_driver cfi_chipdrv = { | |||
| 426 | .module = THIS_MODULE | 426 | .module = THIS_MODULE |
| 427 | }; | 427 | }; |
| 428 | 428 | ||
| 429 | int __init cfi_probe_init(void) | 429 | static int __init cfi_probe_init(void) |
| 430 | { | 430 | { |
| 431 | register_mtd_chip_driver(&cfi_chipdrv); | 431 | register_mtd_chip_driver(&cfi_chipdrv); |
| 432 | return 0; | 432 | return 0; |
