projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e1964d8
)
drm/tve200: Use devm_platform_ioremap_resource()
author
Yang Li
<yang.lee@linux.alibaba.com>
Fri, 21 Apr 2023 09:13:19 +0000
(17:13 +0800)
committer
Linus Walleij
<linus.walleij@linaro.org>
Mon, 24 Apr 2023 08:04:33 +0000
(10:04 +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: Linus Walleij <linus.walleij@linaro.org>
Link:
https://patchwork.freedesktop.org/patch/msgid/20230421091319.79744-1-yang.lee@linux.alibaba.com
drivers/gpu/drm/tve200/tve200_drv.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/tve200/tve200_drv.c
b/drivers/gpu/drm/tve200/tve200_drv.c
index abd557332b288d102db22541b8c405199640ffca..40b1168ad671fd953b340b61596284dee19e28ec 100644
(file)
--- a/
drivers/gpu/drm/tve200/tve200_drv.c
+++ b/
drivers/gpu/drm/tve200/tve200_drv.c
@@
-156,7
+156,6
@@
static int tve200_probe(struct platform_device *pdev)
struct device *dev = &pdev->dev;
struct tve200_drm_dev_private *priv;
struct drm_device *drm;
- struct resource *res;
int irq;
int ret;
@@
-192,8
+191,7
@@
static int tve200_probe(struct platform_device *pdev)
goto clk_disable;
}
- res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
- priv->regs = devm_ioremap_resource(dev, res);
+ priv->regs = devm_platform_ioremap_resource(pdev, 0);
if (IS_ERR(priv->regs)) {
dev_err(dev, "%s failed mmio\n", __func__);
ret = -EINVAL;