<html><body><p>
<pre>
Hi, Shixiong:
On Tue, 2025-01-28 at 17:41 +0800, oushixiong1025@163.com wrote:
> External email : Please do not click links or open attachments until you have verified the sender or the content.
>
>
> From: Shixiong Ou <oushixiong@kylinos.cn>
>
> Do not need to get resource, so convert to use
> devm_platform_ioremap_resource.
Reviewed-by: CK Hu <ck.hu@mediatek.com>
>
> Signed-off-by: Shixiong Ou <oushixiong@kylinos.cn>
> ---
> drivers/gpu/drm/mediatek/mtk_padding.c | 3 +--
> 1 file changed, 1 insertion(+), 2 deletions(-)
>
> diff --git a/drivers/gpu/drm/mediatek/mtk_padding.c b/drivers/gpu/drm/mediatek/mtk_padding.c
> index b4e3e5a3428b..7e302724e74a 100644
> --- a/drivers/gpu/drm/mediatek/mtk_padding.c
> +++ b/drivers/gpu/drm/mediatek/mtk_padding.c
> @@ -95,7 +95,6 @@ static int mtk_padding_probe(struct platform_device *pdev)
> {
> struct device *dev = &pdev->dev;
> struct mtk_padding *priv;
> - struct resource *res;
> int ret;
>
> priv = devm_kzalloc(dev, sizeof(*priv), GFP_KERNEL);
> @@ -107,7 +106,7 @@ static int mtk_padding_probe(struct platform_device *pdev)
> return dev_err_probe(dev, PTR_ERR(priv->clk),
> "failed to get clk\n");
>
> - priv->reg = devm_platform_get_and_ioremap_resource(pdev, 0, &res);
> + priv->reg = devm_platform_ioremap_resource(pdev, 0);
> if (IS_ERR(priv->reg))
> return dev_err_probe(dev, PTR_ERR(priv->reg),
> "failed to do ioremap\n");
> --
> 2.43.0
>
>
</pre>
</p></body></html><!--type:text--><!--{--><pre>************* MEDIATEK Confidentiality Notice
********************
The information contained in this e-mail message (including any
attachments) may be confidential, proprietary, privileged, or otherwise
exempt from disclosure under applicable laws. It is intended to be
conveyed only to the designated recipient(s). Any use, dissemination,
distribution, printing, retaining or copying of this e-mail (including its
attachments) by unintended recipient(s) is strictly prohibited and may
be unlawful. If you are not an intended recipient of this e-mail, or believe
that you have received this e-mail in error, please notify the sender
immediately (by replying to this e-mail), delete any and all copies of
this e-mail (including any attachments) from your system, and do not
disclose the content of this e-mail to any other person. Thank you!
</pre><!--}-->