Skip to content

Commit

Permalink
misc/bt-host: Use devm_ioremap_resource()
Browse files Browse the repository at this point in the history
No need to unpack struct resource, and we don't need ioremap_uncached
here.

Signed-off-by: Jeremy Kerr <[email protected]>
  • Loading branch information
jk-ozlabs committed Nov 18, 2015
1 parent 4e082c8 commit d8d15b9
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions drivers/misc/bt-host.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit d8d15b9

Please sign in to comment.