* [PATCH] video: fbdev: pxafb: Use correct return value for pxafb_probe() @ 2020-05-25 7:11 ` Tiezhu Yang 2020-06-01 13:25 ` Bartlomiej Zolnierkiewicz 0 siblings, 1 reply; 3+ messages in thread From: Tiezhu Yang @ 2020-05-25 7:11 UTC (permalink / raw) To: Bartlomiej Zolnierkiewicz Cc: Tiezhu Yang, linux-fbdev, Xuefeng Li, linux-kernel, dri-devel When call function devm_platform_ioremap_resource(), we should use IS_ERR() to check the return value and return PTR_ERR() if failed. Signed-off-by: Tiezhu Yang <yangtiezhu@loongson.cn> --- drivers/video/fbdev/pxafb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/video/fbdev/pxafb.c b/drivers/video/fbdev/pxafb.c index 00b96a7..423331c 100644 --- a/drivers/video/fbdev/pxafb.c +++ b/drivers/video/fbdev/pxafb.c @@ -2305,7 +2305,7 @@ static int pxafb_probe(struct platform_device *dev) fbi->mmio_base = devm_platform_ioremap_resource(dev, 0); if (IS_ERR(fbi->mmio_base)) { dev_err(&dev->dev, "failed to get I/O memory\n"); - ret = -EBUSY; + ret = PTR_ERR(fbi->mmio_base); goto failed; } -- 2.1.0 ^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] video: fbdev: pxafb: Use correct return value for pxafb_probe() 2020-05-25 7:11 ` [PATCH] video: fbdev: pxafb: Use correct return value for pxafb_probe() Tiezhu Yang @ 2020-06-01 13:25 ` Bartlomiej Zolnierkiewicz 2020-06-02 13:15 ` Daniel Vetter 0 siblings, 1 reply; 3+ messages in thread From: Bartlomiej Zolnierkiewicz @ 2020-06-01 13:25 UTC (permalink / raw) To: Tiezhu Yang; +Cc: linux-fbdev, Xuefeng Li, linux-kernel, dri-devel On 5/25/20 9:11 AM, Tiezhu Yang wrote: > When call function devm_platform_ioremap_resource(), we should use IS_ERR() > to check the return value and return PTR_ERR() if failed. > > Signed-off-by: Tiezhu Yang <yangtiezhu@loongson.cn> Applied to drm-misc-next tree (patch should show up in v5.9), thanks. Best regards, -- Bartlomiej Zolnierkiewicz Samsung R&D Institute Poland Samsung Electronics > --- > drivers/video/fbdev/pxafb.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/video/fbdev/pxafb.c b/drivers/video/fbdev/pxafb.c > index 00b96a7..423331c 100644 > --- a/drivers/video/fbdev/pxafb.c > +++ b/drivers/video/fbdev/pxafb.c > @@ -2305,7 +2305,7 @@ static int pxafb_probe(struct platform_device *dev) > fbi->mmio_base = devm_platform_ioremap_resource(dev, 0); > if (IS_ERR(fbi->mmio_base)) { > dev_err(&dev->dev, "failed to get I/O memory\n"); > - ret = -EBUSY; > + ret = PTR_ERR(fbi->mmio_base); > goto failed; > } > > ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] video: fbdev: pxafb: Use correct return value for pxafb_probe() 2020-06-01 13:25 ` Bartlomiej Zolnierkiewicz @ 2020-06-02 13:15 ` Daniel Vetter 0 siblings, 0 replies; 3+ messages in thread From: Daniel Vetter @ 2020-06-02 13:15 UTC (permalink / raw) To: Bartlomiej Zolnierkiewicz Cc: Tiezhu Yang, Xuefeng Li, linux-fbdev, dri-devel, linux-kernel Hi Bart, On Mon, Jun 01, 2020 at 03:25:25PM +0200, Bartlomiej Zolnierkiewicz wrote: > > On 5/25/20 9:11 AM, Tiezhu Yang wrote: > > When call function devm_platform_ioremap_resource(), we should use IS_ERR() > > to check the return value and return PTR_ERR() if failed. > > > > Signed-off-by: Tiezhu Yang <yangtiezhu@loongson.cn> > > Applied to drm-misc-next tree (patch should show up in v5.9), thanks. Thanks for going through all the backlog of patches in the fbdev area every once in a while! That kind of housekeeping work is often underappreciated, but rather important to keep the ship going. Cheers, Daniel PS: Of course also holds for everyone else doing this in other areas. fbdev simply stuck out just now catching up on mails. > > Best regards, > -- > Bartlomiej Zolnierkiewicz > Samsung R&D Institute Poland > Samsung Electronics > > > --- > > drivers/video/fbdev/pxafb.c | 2 +- > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > > diff --git a/drivers/video/fbdev/pxafb.c b/drivers/video/fbdev/pxafb.c > > index 00b96a7..423331c 100644 > > --- a/drivers/video/fbdev/pxafb.c > > +++ b/drivers/video/fbdev/pxafb.c > > @@ -2305,7 +2305,7 @@ static int pxafb_probe(struct platform_device *dev) > > fbi->mmio_base = devm_platform_ioremap_resource(dev, 0); > > if (IS_ERR(fbi->mmio_base)) { > > dev_err(&dev->dev, "failed to get I/O memory\n"); > > - ret = -EBUSY; > > + ret = PTR_ERR(fbi->mmio_base); > > goto failed; > > } > > > > > _______________________________________________ > dri-devel mailing list > dri-devel@lists.freedesktop.org > https://lists.freedesktop.org/mailman/listinfo/dri-devel -- Daniel Vetter Software Engineer, Intel Corporation http://blog.ffwll.ch ^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2020-06-02 13:15 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <CGME20200525071149eucas1p271b0c64a9d44429978e2099257681b70@eucas1p2.samsung.com>
2020-05-25 7:11 ` [PATCH] video: fbdev: pxafb: Use correct return value for pxafb_probe() Tiezhu Yang
2020-06-01 13:25 ` Bartlomiej Zolnierkiewicz
2020-06-02 13:15 ` Daniel Vetter
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox