diff mbox series

drm/aspeed: Use devm_platform_get_and_ioremap_resource()

Message ID 20250121075041.201599-1-oushixiong1025@163.com (mailing list archive)
State New
Headers show
Series drm/aspeed: Use devm_platform_get_and_ioremap_resource() | expand

Commit Message

Shixiong Ou Jan. 21, 2025, 7:50 a.m. UTC
From: Shixiong Ou <oushixiong@kylinos.cn>

Signed-off-by: Shixiong Ou <oushixiong@kylinos.cn>
---
 drivers/gpu/drm/aspeed/aspeed_gfx_drv.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

Comments

Dmitry Baryshkov Jan. 21, 2025, 10:16 a.m. UTC | #1
On Tue, Jan 21, 2025 at 03:50:41PM +0800, oushixiong1025@163.com wrote:
> From: Shixiong Ou <oushixiong@kylinos.cn>
> 
Missing commit message

> Signed-off-by: Shixiong Ou <oushixiong@kylinos.cn>

This doesn't match your email address, so SoB is missing.
Shixiong Ou Jan. 22, 2025, 2:46 a.m. UTC | #2
在 2025/1/21 18:16, Dmitry Baryshkov 写道:
> On Tue, Jan 21, 2025 at 03:50:41PM +0800, oushixiong1025@163.com wrote:
>> From: Shixiong Ou <oushixiong@kylinos.cn>
>>
> Missing commit message
I will add commit message on v2, thanks.
>> Signed-off-by: Shixiong Ou <oushixiong@kylinos.cn>
> This doesn't match your email address, so SoB is missing.

The SMAP service for my email <oushixiong@kylinos.cn>  is not working 
now, so I sent this patch from my alternate mailbox.

Shixiong Ou <oushixiong@kylinos.cn> and Shixiong Ou 
<oushixiong1025@163.com> are both my email addresses.
diff mbox series

Patch

diff --git a/drivers/gpu/drm/aspeed/aspeed_gfx_drv.c b/drivers/gpu/drm/aspeed/aspeed_gfx_drv.c
index a7a6b70220eb..33f81b53771d 100644
--- a/drivers/gpu/drm/aspeed/aspeed_gfx_drv.c
+++ b/drivers/gpu/drm/aspeed/aspeed_gfx_drv.c
@@ -146,8 +146,7 @@  static int aspeed_gfx_load(struct drm_device *drm)
 	struct resource *res;
 	int ret;
 
-	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
-	priv->base = devm_ioremap_resource(drm->dev, res);
+	priv->base = devm_platform_get_and_ioremap_resource(pdev, 0, &res);
 	if (IS_ERR(priv->base))
 		return PTR_ERR(priv->base);