Re: [PATCH 1/3] DRM: ingenic: Use devm_platform_ioremap_resource

2019-06-30 Thread Sam Ravnborg
Hi Paul. > > > > > > -mem = platform_get_resource(pdev, IORESOURCE_MEM, 0); > > > -base = devm_ioremap_resource(dev, mem); > > > +base = devm_platform_ioremap_resource(pdev, 0); > > > if (IS_ERR(base)) { > > > dev_err(dev, "Failed to get memo

Re: [PATCH 1/3] DRM: ingenic: Use devm_platform_ioremap_resource

2019-06-30 Thread Paul Cercueil
Le dim. 30 juin 2019 à 10:18, Sam Ravnborg a écrit : Hi Paul. On Thu, Jun 27, 2019 at 08:21:12PM +0200, Paul Cercueil wrote: Simplify a bit the probe function by using the newly introduced devm_platform_ioremap_resource(), instead of having to call platform_get_resource() followed by de

Re: [PATCH 1/3] DRM: ingenic: Use devm_platform_ioremap_resource

2019-06-30 Thread Sam Ravnborg
Hi Paul. On Thu, Jun 27, 2019 at 08:21:12PM +0200, Paul Cercueil wrote: > Simplify a bit the probe function by using the newly introduced > devm_platform_ioremap_resource(), instead of having to call > platform_get_resource() followed by devm_ioremap_resource(). > > Signed-off-by: Paul Cercueil

[PATCH 1/3] DRM: ingenic: Use devm_platform_ioremap_resource

2019-06-27 Thread Paul Cercueil
Simplify a bit the probe function by using the newly introduced devm_platform_ioremap_resource(), instead of having to call platform_get_resource() followed by devm_ioremap_resource(). Signed-off-by: Paul Cercueil --- drivers/gpu/drm/ingenic/ingenic-drm.c | 4 +--- 1 file changed, 1 insertion(+)