Commit ac9fd659 authored by Hans de Goede's avatar Hans de Goede

drm: gm12u320: Add -ENODEV to list of errors to ignore

Add -ENODEV to the list of usb-transfer errors which we ignore to
avoid logging Frame update errors when the device gets unplugged.
Acked-by: default avatarSam Ravnborg <sam@ravnborg.org>
Signed-off-by: default avatarHans de Goede <hdegoede@redhat.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190811143725.5951-2-hdegoede@redhat.com
parent 9b61db1a
...@@ -422,7 +422,7 @@ static void gm12u320_fb_update_work(struct work_struct *work) ...@@ -422,7 +422,7 @@ static void gm12u320_fb_update_work(struct work_struct *work)
return; return;
err: err:
/* Do not log errors caused by module unload or device unplug */ /* 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); GM12U320_ERR("Frame update error: %d\n", ret);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment