From: Hans de Goede Date: Sun, 11 Aug 2019 14:37:25 +0000 (+0200) Subject: drm: gm12u320: Add -ENODEV to list of errors to ignore X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=ac9fd659ef8cac9a71f0ef943ef6da04f1939775;p=openwrt%2Fstaging%2Fblogic.git 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: Sam Ravnborg Signed-off-by: Hans de Goede Link: https://patchwork.freedesktop.org/patch/msgid/20190811143725.5951-2-hdegoede@redhat.com --- diff --git a/drivers/gpu/drm/tiny/gm12u320.c b/drivers/gpu/drm/tiny/gm12u320.c index aa4b46e47e19..03d0e2df6774 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); }