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:
2a1ca44
)
drm/tegra: hdmi: Convert to devm_platform_ioremap_resource()
author
Yangtao Li
<frank.li@vivo.com>
Mon, 10 Jul 2023 03:23:41 +0000
(11:23 +0800)
committer
Thierry Reding
<treding@nvidia.com>
Thu, 27 Jul 2023 16:41:59 +0000
(18:41 +0200)
Use devm_platform_ioremap_resource() to simplify code.
Signed-off-by: Yangtao Li <frank.li@vivo.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
Link:
https://patchwork.freedesktop.org/patch/msgid/20230710032355.72914-5-frank.li@vivo.com
drivers/gpu/drm/tegra/hdmi.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/tegra/hdmi.c
b/drivers/gpu/drm/tegra/hdmi.c
index
549a156
..
80c7609
100644
(file)
--- a/
drivers/gpu/drm/tegra/hdmi.c
+++ b/
drivers/gpu/drm/tegra/hdmi.c
@@
-1792,7
+1792,6
@@
static irqreturn_t tegra_hdmi_irq(int irq, void *data)
static int tegra_hdmi_probe(struct platform_device *pdev)
{
struct tegra_hdmi *hdmi;
- struct resource *regs;
int err;
hdmi = devm_kzalloc(&pdev->dev, sizeof(*hdmi), GFP_KERNEL);
@@
-1854,8
+1853,7
@@
static int tegra_hdmi_probe(struct platform_device *pdev)
if (err < 0)
return err;
- regs = platform_get_resource(pdev, IORESOURCE_MEM, 0);
- hdmi->regs = devm_ioremap_resource(&pdev->dev, regs);
+ hdmi->regs = devm_platform_ioremap_resource(pdev, 0);
if (IS_ERR(hdmi->regs))
return PTR_ERR(hdmi->regs);