udlfb: remove sysfs framebuffer device with USB .disconnect()
[firefly-linux-kernel-4.4.55.git] / drivers / video / udlfb.c
index a19773149bd7edaa7844ff2777ebf771e9fe9013..a40c05ebbdc2bf97758db087661ea336fc185c03 100644 (file)
@@ -1739,7 +1739,7 @@ static void dlfb_usb_disconnect(struct usb_interface *interface)
        for (i = 0; i < ARRAY_SIZE(fb_device_attrs); i++)
                device_remove_file(info->dev, &fb_device_attrs[i]);
        device_remove_bin_file(info->dev, &edid_attr);
-
+       unlink_framebuffer(info);
        usb_set_intfdata(interface, NULL);
 
        /* if clients still have us open, will be freed on last close */