[PATCH linux v2 2/2] misc/bt-host: Use devm_ioremap_resource()
OpenBMC Patches
openbmc-patches at stwcx.xyz
Wed Nov 18 15:10:19 AEDT 2015
From: Jeremy Kerr <jk at ozlabs.org>
No need to unpack struct resource, and we don't need ioremap_uncached
here.
Signed-off-by: Jeremy Kerr <jk at ozlabs.org>
---
drivers/misc/bt-host.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/drivers/misc/bt-host.c b/drivers/misc/bt-host.c
index 7b5206e..105d3fc 100644
--- a/drivers/misc/bt-host.c
+++ b/drivers/misc/bt-host.c
@@ -333,8 +333,7 @@ static int bt_host_probe(struct platform_device *pdev)
goto out_free;
}
- bt_host->base = devm_ioremap_nocache(&pdev->dev, res->start,
- resource_size(res));
+ bt_host->base = devm_ioremap_resource(&pdev->dev, res);
if (!bt_host->base) {
rc = -ENOMEM;
goto out_free;
--
2.6.3
More information about the openbmc
mailing list