|
@@ -24,8 +24,8 @@ static struct mtd_info *mymtd;
|
|
static struct map_info h720x_map = {
|
|
static struct map_info h720x_map = {
|
|
.name = "H720X",
|
|
.name = "H720X",
|
|
.bankwidth = 4,
|
|
.bankwidth = 4,
|
|
- .size = FLASH_SIZE,
|
|
|
|
- .phys = FLASH_PHYS,
|
|
|
|
|
|
+ .size = H720X_FLASH_SIZE,
|
|
|
|
+ .phys = H720X_FLASH_PHYS,
|
|
};
|
|
};
|
|
|
|
|
|
static struct mtd_partition h720x_partitions[] = {
|
|
static struct mtd_partition h720x_partitions[] = {
|
|
@@ -70,7 +70,7 @@ int __init h720x_mtd_init(void)
|
|
|
|
|
|
char *part_type = NULL;
|
|
char *part_type = NULL;
|
|
|
|
|
|
- h720x_map.virt = ioremap(FLASH_PHYS, FLASH_SIZE);
|
|
|
|
|
|
+ h720x_map.virt = ioremap(h720x_map.phys, h720x_map.size);
|
|
|
|
|
|
if (!h720x_map.virt) {
|
|
if (!h720x_map.virt) {
|
|
printk(KERN_ERR "H720x-MTD: ioremap failed\n");
|
|
printk(KERN_ERR "H720x-MTD: ioremap failed\n");
|