Commit 80c268c3 authored by Martin Kaiser's avatar Martin Kaiser Committed by Dmitry Torokhov

Input: tegra-kbc - use devm_platform_ioremap_resource

devm_platform_get_and_ioremap_resource maps a resource and returns its
physical address. If we don't need the physical address, we should call
devm_platform_ioremap_resource instead.
Signed-off-by: default avatarMartin Kaiser <martin@kaiser.cx>
Acked-by: default avatarThierry Reding <treding@nvidia.com>
Link: https://lore.kernel.org/r/20230709134109.182418-1-martin@kaiser.cxSigned-off-by: default avatarDmitry Torokhov <dmitry.torokhov@gmail.com>
parent 7249bdbd
......@@ -640,7 +640,7 @@ static int tegra_kbc_probe(struct platform_device *pdev)
timer_setup(&kbc->timer, tegra_kbc_keypress_timer, 0);
kbc->mmio = devm_platform_get_and_ioremap_resource(pdev, 0, NULL);
kbc->mmio = devm_platform_ioremap_resource(pdev, 0);
if (IS_ERR(kbc->mmio))
return PTR_ERR(kbc->mmio);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment