Commit cabfa2bb authored by Helge Deller's avatar Helge Deller

Revert "video: fbdev: fbmem: fix pointer reference to null device field"

This reverts commit d6cd978f.
It has been solved differently already.
Signed-off-by: default avatarHelge Deller <deller@gmx.de>
Acked-by: default avatarPaul Menzel <pmenzel@molgen.mpg.de>
Link: https://patchwork.freedesktop.org/patch/msgid/20220210065824.368355-1-zhouzhouyi@gmail.com
parent d6cd978f
......@@ -1579,7 +1579,7 @@ static void do_remove_conflicting_framebuffers(struct apertures_struct *a,
* If it's not a platform device, at least print a warning. A
* fix would add code to remove the device from the system.
*/
if (device && dev_is_platform(device)) {
if (dev_is_platform(device)) {
registered_fb[i]->forced_out = true;
platform_device_unregister(to_platform_device(device));
} else {
......
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