Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e6b8480c authored by Wanlong Gao's avatar Wanlong Gao Committed by Paul Mundt
Browse files

efifb: Fix call to wrong unregister function



platform_device_unregister() needs to unregister the device, not the
driver.

Signed-off-by: default avatarWanlong Gao <wanlong.gao@gmail.com>
Signed-off-by: default avatarMaarten Lankhorst <m.b.lankhorst@gmail.com>
Acked-by: default avatarAndy Lutomirski <luto@mit.edu>
Signed-off-by: default avatarPaul Mundt <lethal@linux-sh.org>
parent fab7c5b7
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -541,7 +541,7 @@ static int __init efifb_init(void)
	 */
	ret = platform_driver_probe(&efifb_driver, efifb_probe);
	if (ret) {
		platform_device_unregister(&efifb_driver);
		platform_device_unregister(&efifb_device);
		return ret;
	}