mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2025-04-21 12:27:27 +03:00
Replace hardcoded values with their correct definitions
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@8046 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user