Add -ENODEV to the list of usb-transfer errors which we ignore to
avoid logging Frame update errors when the device gets unplugged.

Signed-off-by: Hans de Goede <hdego...@redhat.com>
---
 drivers/gpu/drm/tiny/gm12u320.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/tiny/gm12u320.c b/drivers/gpu/drm/tiny/gm12u320.c
index 4d66765b1125..08a52a67ec9e 100644
--- a/drivers/gpu/drm/tiny/gm12u320.c
+++ b/drivers/gpu/drm/tiny/gm12u320.c
@@ -422,7 +422,7 @@ static void gm12u320_fb_update_work(struct work_struct 
*work)
        return;
 err:
        /* Do not log errors caused by module unload or device unplug */
-       if (ret != -ECONNRESET && ret != -ESHUTDOWN)
+       if (ret != -ENODEV && ret != -ECONNRESET && ret != -ESHUTDOWN)
                GM12U320_ERR("Frame update error: %d\n", ret);
 }
 
-- 
2.22.0

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

Reply via email to