atmel_nand: switch to "struct resource"
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
This commit is contained in:
parent
a42dc1226b
commit
3230114800
|
@ -381,7 +381,7 @@ static int __init atmel_nand_probe(struct device_d *dev)
|
||||||
if (!host)
|
if (!host)
|
||||||
return -ENOMEM;
|
return -ENOMEM;
|
||||||
|
|
||||||
host->io_base = (void __iomem *)dev->map_base;
|
host->io_base = (void __iomem *)dev->resource[0].start;
|
||||||
|
|
||||||
mtd = &host->mtd;
|
mtd = &host->mtd;
|
||||||
nand_chip = &host->nand_chip;
|
nand_chip = &host->nand_chip;
|
||||||
|
|
Loading…
Reference in New Issue