mirror of
https://github.com/followmsi/android_kernel_google_msm.git
synced 2024-11-06 23:17:41 +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
1 changed files with 1 additions and 1 deletions
|
@ -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…
Reference in a new issue