Message ID | 20250121081336.218918-1-oushixiong1025@163.com (mailing list archive) |
---|---|
State | New |
Headers | show |
Series | drm/bridge: Use devm_platform_get_and_ioremap_resource() | expand |
On Tue, Jan 21, 2025 at 04:13:36PM +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. > --- > drivers/gpu/drm/bridge/analogix/analogix_dp_core.c | 4 +--- > drivers/gpu/drm/bridge/microchip-lvds.c | 5 ++--- > drivers/gpu/drm/bridge/synopsys/dw-hdmi.c | 3 +-- > 3 files changed, 4 insertions(+), 8 deletions(-) > >
在 2025/1/21 18:16, Dmitry Baryshkov 写道: > On Tue, Jan 21, 2025 at 04:13:36PM +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. <oushixiong@kylinos.cn> and <oushixiong1025@163.com> are both my email addresses. >> --- >> drivers/gpu/drm/bridge/analogix/analogix_dp_core.c | 4 +--- >> drivers/gpu/drm/bridge/microchip-lvds.c | 5 ++--- >> drivers/gpu/drm/bridge/synopsys/dw-hdmi.c | 3 +-- >> 3 files changed, 4 insertions(+), 8 deletions(-) >> >>
diff --git a/drivers/gpu/drm/bridge/analogix/analogix_dp_core.c b/drivers/gpu/drm/bridge/analogix/analogix_dp_core.c index bfa88409a7ff..284fd186eb5f 100644 --- a/drivers/gpu/drm/bridge/analogix/analogix_dp_core.c +++ b/drivers/gpu/drm/bridge/analogix/analogix_dp_core.c @@ -1605,9 +1605,7 @@ analogix_dp_probe(struct device *dev, struct analogix_dp_plat_data *plat_data) return ERR_CAST(dp->clock); } - res = platform_get_resource(pdev, IORESOURCE_MEM, 0); - - dp->reg_base = devm_ioremap_resource(&pdev->dev, res); + dp->reg_base = devm_platform_get_and_ioremap_resource(pdev, 0, &res); if (IS_ERR(dp->reg_base)) { ret = PTR_ERR(dp->reg_base); goto err_disable_clk; diff --git a/drivers/gpu/drm/bridge/microchip-lvds.c b/drivers/gpu/drm/bridge/microchip-lvds.c index b8313dad6072..a679dd76962d 100644 --- a/drivers/gpu/drm/bridge/microchip-lvds.c +++ b/drivers/gpu/drm/bridge/microchip-lvds.c @@ -151,6 +151,7 @@ static int mchp_lvds_probe(struct platform_device *pdev) struct device *dev = &pdev->dev; struct mchp_lvds *lvds; struct device_node *port; + struct resource *res; int ret; if (!dev->of_node) @@ -161,9 +162,7 @@ static int mchp_lvds_probe(struct platform_device *pdev) return -ENOMEM; lvds->dev = dev; - - lvds->regs = devm_ioremap_resource(lvds->dev, - platform_get_resource(pdev, IORESOURCE_MEM, 0)); + lvds->regs = devm_platform_get_and_ioremap_resource(pdev, 0, &res); if (IS_ERR(lvds->regs)) return PTR_ERR(lvds->regs); diff --git a/drivers/gpu/drm/bridge/synopsys/dw-hdmi.c b/drivers/gpu/drm/bridge/synopsys/dw-hdmi.c index 0031f3c54882..96e17776165c 100644 --- a/drivers/gpu/drm/bridge/synopsys/dw-hdmi.c +++ b/drivers/gpu/drm/bridge/synopsys/dw-hdmi.c @@ -3386,8 +3386,7 @@ struct dw_hdmi *dw_hdmi_probe(struct platform_device *pdev, return ERR_PTR(-EINVAL); } - iores = platform_get_resource(pdev, IORESOURCE_MEM, 0); - hdmi->regs = devm_ioremap_resource(dev, iores); + hdmi->regs = devm_platform_get_and_ioremap_resource(pdev, 0, &iores); if (IS_ERR(hdmi->regs)) { ret = PTR_ERR(hdmi->regs); goto err_res;