efifb: Fix call to wrong unregister function

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

Signed-off-by: Wanlong Gao <[email protected]>
Signed-off-by: Maarten Lankhorst <[email protected]>
Acked-by: Andy Lutomirski <[email protected]>
Signed-off-by: Paul Mundt <[email protected]>
This commit is contained in:
Wanlong Gao 2011-06-12 10:52:33 +00:00 • committed by Paul Mundt
commit e6b8480cdf

View file

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