mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-01-12 08:09:56 +00:00
efifb: Fix call to wrong unregister function
platform_device_unregister() needs to unregister the device, not the driver. Signed-off-by: Wanlong Gao <wanlong.gao@gmail.com> Signed-off-by: Maarten Lankhorst <m.b.lankhorst@gmail.com> Acked-by: Andy Lutomirski <luto@mit.edu> Signed-off-by: Paul Mundt <lethal@linux-sh.org>
This commit is contained in:
parent
fab7c5b778
commit
e6b8480cdf
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user