dt: Eliminate of_platform_{,un}register_driver

Final step to eliminate of_platform_bus_type.  They're all just
platform drivers now.

v2: fix type in pasemi_nand.c (thanks to Stephen Rothwell)

Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
このコミットが含まれているのは:
Grant Likely
2011-02-17 02:43:24 -07:00
コミット 1c48a5c93d
27個のファイルの変更134行の追加148行の削除

ファイルの表示

@@ -108,7 +108,7 @@ int uflash_devinit(struct platform_device *op, struct device_node *dp)
return 0;
}
static int __devinit uflash_probe(struct platform_device *op, const struct of_device_id *match)
static int __devinit uflash_probe(struct platform_device *op)
{
struct device_node *dp = op->dev.of_node;
@@ -148,7 +148,7 @@ static const struct of_device_id uflash_match[] = {
MODULE_DEVICE_TABLE(of, uflash_match);
static struct of_platform_driver uflash_driver = {
static struct platform_driver uflash_driver = {
.driver = {
.name = DRIVER_NAME,
.owner = THIS_MODULE,
@@ -160,12 +160,12 @@ static struct of_platform_driver uflash_driver = {
static int __init uflash_init(void)
{
return of_register_platform_driver(&uflash_driver);
return platform_driver_register(&uflash_driver);
}
static void __exit uflash_exit(void)
{
of_unregister_platform_driver(&uflash_driver);
platform_driver_unregister(&uflash_driver);
}
module_init(uflash_init);