Skip to content

Commit

Permalink
efifb: Fix call to wrong unregister function
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Wanlong Gao authored and Paul Mundt committed Jun 14, 2011
1 parent fab7c5b commit e6b8480
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/video/efifb.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit e6b8480

Please sign in to comment.