mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-22 06:57:57 +00:00
Replace hardcoded values with their correct definitions
SVN-Revision: 8046
This commit is contained in:
parent
b3fae87009
commit
01696b71cc
@ -114,7 +114,7 @@ struct platform_device adm5120_flash1_device = {
|
||||
struct resource adm5120_nand_resource[] = {
|
||||
[0] = {
|
||||
.start = ADM5120_SRAM1_BASE,
|
||||
.end = ADM5120_SRAM1_BASE+0x1000-1,
|
||||
.end = ADM5120_SRAM1_BASE+ADM5120_MPMC_SIZE-1,
|
||||
.flags = IORESOURCE_MEM,
|
||||
},
|
||||
};
|
||||
|
@ -115,7 +115,7 @@ static int rbmips_probe(struct platform_device *pdev)
|
||||
|
||||
}
|
||||
|
||||
data->io_base = ioremap(pdev->resource[0].start, 0x1000);
|
||||
data->io_base = ioremap(pdev->resource[0].start, pdev->resource[0].end - pdev->resource[0].start + 1);
|
||||
|
||||
if (data->io_base == NULL) {
|
||||
dev_err(&pdev->dev, "ioremap failed\n");
|
||||
|
Loading…
Reference in New Issue
Block a user