aboutsummaryrefslogtreecommitdiffstats
path: root/sound/sparc
diff options
context:
space:
mode:
Diffstat (limited to 'sound/sparc')
-rw-r--r--sound/sparc/amd7930.c7
-rw-r--r--sound/sparc/cs4231.c14
-rw-r--r--sound/sparc/dbri.c10
3 files changed, 20 insertions, 11 deletions
diff --git a/sound/sparc/amd7930.c b/sound/sparc/amd7930.c
index 574af56ba8a6..71221fd20944 100644
--- a/sound/sparc/amd7930.c
+++ b/sound/sparc/amd7930.c
@@ -1065,8 +1065,11 @@ static const struct of_device_id amd7930_match[] = {
1065}; 1065};
1066 1066
1067static struct of_platform_driver amd7930_sbus_driver = { 1067static struct of_platform_driver amd7930_sbus_driver = {
1068 .name = "audio", 1068 .driver = {
1069 .match_table = amd7930_match, 1069 .name = "audio",
1070 .owner = THIS_MODULE,
1071 .of_match_table = amd7930_match,
1072 },
1070 .probe = amd7930_sbus_probe, 1073 .probe = amd7930_sbus_probe,
1071}; 1074};
1072 1075
diff --git a/sound/sparc/cs4231.c b/sound/sparc/cs4231.c
index 8d13d933087d..fb4c6f2f29e5 100644
--- a/sound/sparc/cs4231.c
+++ b/sound/sparc/cs4231.c
@@ -10,7 +10,6 @@
10 10
11#include <linux/module.h> 11#include <linux/module.h>
12#include <linux/kernel.h> 12#include <linux/kernel.h>
13#include <linux/slab.h>
14#include <linux/delay.h> 13#include <linux/delay.h>
15#include <linux/init.h> 14#include <linux/init.h>
16#include <linux/interrupt.h> 15#include <linux/interrupt.h>
@@ -2076,12 +2075,12 @@ static int __devinit cs4231_ebus_probe(struct of_device *op, const struct of_dev
2076static int __devinit cs4231_probe(struct of_device *op, const struct of_device_id *match) 2075static int __devinit cs4231_probe(struct of_device *op, const struct of_device_id *match)
2077{ 2076{
2078#ifdef EBUS_SUPPORT 2077#ifdef EBUS_SUPPORT
2079 if (!strcmp(op->node->parent->name, "ebus")) 2078 if (!strcmp(op->dev.of_node->parent->name, "ebus"))
2080 return cs4231_ebus_probe(op, match); 2079 return cs4231_ebus_probe(op, match);
2081#endif 2080#endif
2082#ifdef SBUS_SUPPORT 2081#ifdef SBUS_SUPPORT
2083 if (!strcmp(op->node->parent->name, "sbus") || 2082 if (!strcmp(op->dev.of_node->parent->name, "sbus") ||
2084 !strcmp(op->node->parent->name, "sbi")) 2083 !strcmp(op->dev.of_node->parent->name, "sbi"))
2085 return cs4231_sbus_probe(op, match); 2084 return cs4231_sbus_probe(op, match);
2086#endif 2085#endif
2087 return -ENODEV; 2086 return -ENODEV;
@@ -2110,8 +2109,11 @@ static const struct of_device_id cs4231_match[] = {
2110MODULE_DEVICE_TABLE(of, cs4231_match); 2109MODULE_DEVICE_TABLE(of, cs4231_match);
2111 2110
2112static struct of_platform_driver cs4231_driver = { 2111static struct of_platform_driver cs4231_driver = {
2113 .name = "audio", 2112 .driver = {
2114 .match_table = cs4231_match, 2113 .name = "audio",
2114 .owner = THIS_MODULE,
2115 .of_match_table = cs4231_match,
2116 },
2115 .probe = cs4231_probe, 2117 .probe = cs4231_probe,
2116 .remove = __devexit_p(cs4231_remove), 2118 .remove = __devexit_p(cs4231_remove),
2117}; 2119};
diff --git a/sound/sparc/dbri.c b/sound/sparc/dbri.c
index 1d2e51b3f918..1557bf132e73 100644
--- a/sound/sparc/dbri.c
+++ b/sound/sparc/dbri.c
@@ -58,6 +58,7 @@
58#include <linux/irq.h> 58#include <linux/irq.h>
59#include <linux/io.h> 59#include <linux/io.h>
60#include <linux/dma-mapping.h> 60#include <linux/dma-mapping.h>
61#include <linux/gfp.h>
61 62
62#include <sound/core.h> 63#include <sound/core.h>
63#include <sound/pcm.h> 64#include <sound/pcm.h>
@@ -2650,7 +2651,7 @@ static int __devinit dbri_probe(struct of_device *op, const struct of_device_id
2650 2651
2651 printk(KERN_INFO "audio%d at %p (irq %d) is DBRI(%c)+CS4215(%d)\n", 2652 printk(KERN_INFO "audio%d at %p (irq %d) is DBRI(%c)+CS4215(%d)\n",
2652 dev, dbri->regs, 2653 dev, dbri->regs,
2653 dbri->irq, op->node->name[9], dbri->mm.version); 2654 dbri->irq, op->dev.of_node->name[9], dbri->mm.version);
2654 dev++; 2655 dev++;
2655 2656
2656 return 0; 2657 return 0;
@@ -2686,8 +2687,11 @@ static const struct of_device_id dbri_match[] = {
2686MODULE_DEVICE_TABLE(of, dbri_match); 2687MODULE_DEVICE_TABLE(of, dbri_match);
2687 2688
2688static struct of_platform_driver dbri_sbus_driver = { 2689static struct of_platform_driver dbri_sbus_driver = {
2689 .name = "dbri", 2690 .driver = {
2690 .match_table = dbri_match, 2691 .name = "dbri",
2692 .owner = THIS_MODULE,
2693 .of_match_table = dbri_match,
2694 },
2691 .probe = dbri_probe, 2695 .probe = dbri_probe,
2692 .remove = __devexit_p(dbri_remove), 2696 .remove = __devexit_p(dbri_remove),
2693}; 2697};