Commit 2b41f832 authored by Thomas Zimmermann's avatar Thomas Zimmermann
Browse files

fbdev/broadsheetfb: Call device_remove_file() with hardware device



Call device_remove_file() with the same device that has been used
for device_create_file(), which is the hardware device stored in
struct fb_info.device. Prepares fbdev for making struct fb_info.dev
optional.

Signed-off-by: default avatarThomas Zimmermann <tzimmermann@suse.de>
Reviewed-by: default avatarJavier Martinez Canillas <javierm@redhat.com>
Reviewed-by: default avatarSam Ravnborg <sam@ravnborg.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20230613110953.24176-12-tzimmermann@suse.de
parent 8f7bcbe3
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1200,7 +1200,7 @@ static void broadsheetfb_remove(struct platform_device *dev)
	if (info) {
		struct broadsheetfb_par *par = info->par;

		device_remove_file(info->dev, &dev_attr_loadstore_waveform);
		device_remove_file(info->device, &dev_attr_loadstore_waveform);
		unregister_framebuffer(info);
		fb_deferred_io_cleanup(info);
		par->board->cleanup(par);