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 555313f commit 50cc9a3Copy full SHA for 50cc9a3
drivers/gpu/drm/stm/ltdc.c
@@ -1900,7 +1900,6 @@ int ltdc_load(struct drm_device *ddev)
1900
struct drm_panel *panel;
1901
struct drm_crtc *crtc;
1902
struct reset_control *rstc;
1903
- struct resource *res;
1904
int irq, i, nb_endpoints;
1905
int ret = -ENODEV;
1906
@@ -1966,8 +1965,7 @@ int ltdc_load(struct drm_device *ddev)
1966
1965
reset_control_deassert(rstc);
1967
}
1968
1969
- res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
1970
- ldev->regs = devm_ioremap_resource(dev, res);
+ ldev->regs = devm_platform_ioremap_resource(pdev, 0);
1971
if (IS_ERR(ldev->regs)) {
1972
DRM_ERROR("Unable to get ltdc registers\n");
1973
ret = PTR_ERR(ldev->regs);
0 commit comments