提交 ee7ebdf4 编写于 作者: R Ralf Baechle 提交者: Jeff Garzik

[PATCH] jazzsonic: Fix platform device code

Use platform_driver_unregister not driver_unregister to unregister a
struct platform_driver.
Signed-off-by: NRalf Baechle <ralf@linux-mips.org>
Signed-off-by: NJeff Garzik <jgarzik@pobox.com>
上级 23c2a7b5
......@@ -307,7 +307,7 @@ static int __init jazz_sonic_init_module(void)
return 0;
out_unregister:
driver_unregister(&jazz_sonic_driver);
platform_driver_unregister(&jazz_sonic_driver);
return -ENOMEM;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册