projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b02e6e0
)
drm/tegra: dpaux: Use devm_platform_ioremap_resource()
author
Yang Li
<yang.lee@linux.alibaba.com>
Fri, 21 Apr 2023 08:49:52 +0000
(16:49 +0800)
committer
Thierry Reding
<treding@nvidia.com>
Thu, 27 Jul 2023 16:41:59 +0000
(18:41 +0200)
Convert platform_get_resource(),devm_ioremap_resource() to a single
call to devm_platform_ioremap_resource(), as this is exactly what this
function does.
Signed-off-by: Yang Li <yang.lee@linux.alibaba.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
Link:
https://patchwork.freedesktop.org/patch/msgid/20230421084952.45275-1-yang.lee@linux.alibaba.com
drivers/gpu/drm/tegra/dpaux.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/tegra/dpaux.c
b/drivers/gpu/drm/tegra/dpaux.c
index
96a8afc
..
22b7b85
100644
(file)
--- a/
drivers/gpu/drm/tegra/dpaux.c
+++ b/
drivers/gpu/drm/tegra/dpaux.c
@@
-447,7
+447,6
@@
static const struct pinmux_ops tegra_dpaux_pinmux_ops = {
static int tegra_dpaux_probe(struct platform_device *pdev)
{
struct tegra_dpaux *dpaux;
- struct resource *regs;
u32 value;
int err;
@@
-461,8
+460,7
@@
static int tegra_dpaux_probe(struct platform_device *pdev)
INIT_LIST_HEAD(&dpaux->list);
dpaux->dev = &pdev->dev;
- regs = platform_get_resource(pdev, IORESOURCE_MEM, 0);
- dpaux->regs = devm_ioremap_resource(&pdev->dev, regs);
+ dpaux->regs = devm_platform_ioremap_resource(pdev, 0);
if (IS_ERR(dpaux->regs))
return PTR_ERR(dpaux->regs);