File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -1581,7 +1581,14 @@ static void do_remove_conflicting_framebuffers(struct apertures_struct *a,
15811581 * If it's not a platform device, at least print a warning. A
15821582 * fix would add code to remove the device from the system.
15831583 */
1584- if (dev_is_platform (device )) {
1584+ if (!device ) {
1585+ /* TODO: Represent each OF framebuffer as its own
1586+ * device in the device hierarchy. For now, offb
1587+ * doesn't have such a device, so unregister the
1588+ * framebuffer as before without warning.
1589+ */
1590+ do_unregister_framebuffer (registered_fb [i ]);
1591+ } else if (dev_is_platform (device )) {
15851592 registered_fb [i ]-> forced_out = true;
15861593 platform_device_unregister (to_platform_device (device ));
15871594 } else {
You can’t perform that action at this time.
0 commit comments