Skip to content

Commit d8d15b9

Browse files
committed
misc/bt-host: Use devm_ioremap_resource()
No need to unpack struct resource, and we don't need ioremap_uncached here. Signed-off-by: Jeremy Kerr <[email protected]>
1 parent 4e082c8 commit d8d15b9

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

drivers/misc/bt-host.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -333,8 +333,7 @@ static int bt_host_probe(struct platform_device *pdev)
333333
goto out_free;
334334
}
335335

336-
bt_host->base = devm_ioremap_nocache(&pdev->dev, res->start,
337-
resource_size(res));
336+
bt_host->base = devm_ioremap_resource(&pdev->dev, res);
338337
if (!bt_host->base) {
339338
rc = -ENOMEM;
340339
goto out_free;

0 commit comments

Comments
 (0)