mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-27 22:51:31 +00:00
Revert "video: fbdev: fbmem: fix pointer reference to null device field"
This reverts commit d6cd978f7e
.
It has been solved differently already.
Signed-off-by: Helge Deller <deller@gmx.de>
Acked-by: Paul Menzel <pmenzel@molgen.mpg.de>
Link: https://patchwork.freedesktop.org/patch/msgid/20220210065824.368355-1-zhouzhouyi@gmail.com
This commit is contained in:
parent
d6cd978f7e
commit
cabfa2bbe6
1 changed files with 1 additions and 1 deletions
|
@ -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
|
* If it's not a platform device, at least print a warning. A
|
||||||
* fix would add code to remove the device from the system.
|
* 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;
|
registered_fb[i]->forced_out = true;
|
||||||
platform_device_unregister(to_platform_device(device));
|
platform_device_unregister(to_platform_device(device));
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue