We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d3c2967 commit a2a20c1Copy full SHA for a2a20c1
drivers/gpu/drm/aspeed/aspeed_gfx_drv.c
@@ -144,11 +144,9 @@ static int aspeed_gfx_load(struct drm_device *drm)
144
struct aspeed_gfx *priv = to_aspeed_gfx(drm);
145
struct device_node *np = pdev->dev.of_node;
146
const struct aspeed_gfx_config *config;
147
- struct resource *res;
148
int ret;
149
150
- res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
151
- priv->base = devm_ioremap_resource(drm->dev, res);
+ priv->base = devm_platform_ioremap_resource(pdev, 0);
152
if (IS_ERR(priv->base))
153
return PTR_ERR(priv->base);
154
0 commit comments