提交 a5300dcb 编写于 作者: S Samuel Ortiz

mfd: Fix sm501 requested region size

We should only request for the MFD used region, not the whole thing.
Signed-off-by: NSamuel Ortiz <sameo@linux.intel.com>
Tested-by: NPaul Mundt <lethal@linux-sh.org>
Reviewed-by: NH Hartley Sweeten <hsweeten@visionengravers.com>
上级 522dba71
......@@ -1430,7 +1430,7 @@ static int __devinit sm501_plat_probe(struct platform_device *dev)
}
sm->regs_claim = request_mem_region(sm->io_res->start,
resource_size(sm->io_res), "sm501");
0x100, "sm501");
if (sm->regs_claim == NULL) {
dev_err(&dev->dev, "cannot claim registers\n");
......@@ -1644,7 +1644,7 @@ static int __devinit sm501_pci_probe(struct pci_dev *dev,
sm->mem_res = &dev->resource[0];
sm->regs_claim = request_mem_region(sm->io_res->start,
resource_size(sm->io_res), "sm501");
0x100, "sm501");
if (sm->regs_claim == NULL) {
dev_err(&dev->dev, "cannot claim registers\n");
err= -EBUSY;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册