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

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
......@@ -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;
}
......
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