Skip to content

Commit

Permalink
Input: tegra-kbc - use devm_platform_ioremap_resource
Browse files Browse the repository at this point in the history
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: Martin Kaiser <martin@kaiser.cx>
Acked-by: Thierry Reding <treding@nvidia.com>
Link: https://lore.kernel.org/r/20230709134109.182418-1-martin@kaiser.cx
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
  • Loading branch information
Martin Kaiser authored and Dmitry Torokhov committed Jul 10, 2023
1 parent 7249bdb commit 80c268c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/input/keyboard/tegra-kbc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 80c268c

Please sign in to comment.