diff options
author | Grant Likely <grant.likely@secretlab.ca> | 2011-02-22 23:05:04 -0500 |
---|---|---|
committer | Grant Likely <grant.likely@secretlab.ca> | 2011-02-28 15:22:44 -0500 |
commit | f07eb223a081b278be02a58394cb5fd66f1a1bbd (patch) | |
tree | 164e8f1405a21bb5be9033d92fe20d0387b3a565 /sound/sparc/amd7930.c | |
parent | 18d306d1375696b0e6b5b39e4744d7fa2ad5e170 (diff) |
dt/sound: Eliminate users of of_platform_{,un}register_driver
Get rid of users of of_platform_driver in drivers/sound. The
of_platform_{,un}register_driver functions are going away, so the
users need to be converted to using the platform_bus_type directly.
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
Diffstat (limited to 'sound/sparc/amd7930.c')
-rw-r--r-- | sound/sparc/amd7930.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sound/sparc/amd7930.c b/sound/sparc/amd7930.c index f8bcfc30f800..ad7d4d7d9237 100644 --- a/sound/sparc/amd7930.c +++ b/sound/sparc/amd7930.c | |||
@@ -1002,7 +1002,7 @@ static int __devinit snd_amd7930_create(struct snd_card *card, | |||
1002 | return 0; | 1002 | return 0; |
1003 | } | 1003 | } |
1004 | 1004 | ||
1005 | static int __devinit amd7930_sbus_probe(struct platform_device *op, const struct of_device_id *match) | 1005 | static int __devinit amd7930_sbus_probe(struct platform_device *op) |
1006 | { | 1006 | { |
1007 | struct resource *rp = &op->resource[0]; | 1007 | struct resource *rp = &op->resource[0]; |
1008 | static int dev_num; | 1008 | static int dev_num; |
@@ -1064,7 +1064,7 @@ static const struct of_device_id amd7930_match[] = { | |||
1064 | {}, | 1064 | {}, |
1065 | }; | 1065 | }; |
1066 | 1066 | ||
1067 | static struct of_platform_driver amd7930_sbus_driver = { | 1067 | static struct platform_driver amd7930_sbus_driver = { |
1068 | .driver = { | 1068 | .driver = { |
1069 | .name = "audio", | 1069 | .name = "audio", |
1070 | .owner = THIS_MODULE, | 1070 | .owner = THIS_MODULE, |
@@ -1075,7 +1075,7 @@ static struct of_platform_driver amd7930_sbus_driver = { | |||
1075 | 1075 | ||
1076 | static int __init amd7930_init(void) | 1076 | static int __init amd7930_init(void) |
1077 | { | 1077 | { |
1078 | return of_register_platform_driver(&amd7930_sbus_driver); | 1078 | return platform_driver_register(&amd7930_sbus_driver); |
1079 | } | 1079 | } |
1080 | 1080 | ||
1081 | static void __exit amd7930_exit(void) | 1081 | static void __exit amd7930_exit(void) |
@@ -1092,7 +1092,7 @@ static void __exit amd7930_exit(void) | |||
1092 | 1092 | ||
1093 | amd7930_list = NULL; | 1093 | amd7930_list = NULL; |
1094 | 1094 | ||
1095 | of_unregister_platform_driver(&amd7930_sbus_driver); | 1095 | platform_driver_unregister(&amd7930_sbus_driver); |
1096 | } | 1096 | } |
1097 | 1097 | ||
1098 | module_init(amd7930_init); | 1098 | module_init(amd7930_init); |