diff options
| author | Trond Myklebust <Trond.Myklebust@netapp.com> | 2006-06-25 06:44:44 -0400 |
|---|---|---|
| committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2006-06-25 06:44:44 -0400 |
| commit | 76a9f26c9e40e9c0ed5dc8f0cedd74e733f0088d (patch) | |
| tree | 8e2db4ba9263e92d264ef469c7dac28078f63874 /sound/sparc/cs4231.c | |
| parent | 9bf2aa129a107a0e9e2a5318d35aca731ae7e666 (diff) | |
| parent | dfd8317d3340f03bc06eba6b58f0ec0861da4a13 (diff) | |
Merge branch 'master' of /home/trondmy/kernel/linux-2.6/
Diffstat (limited to 'sound/sparc/cs4231.c')
| -rw-r--r-- | sound/sparc/cs4231.c | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/sound/sparc/cs4231.c b/sound/sparc/cs4231.c index b3efc9aa2916..da54d04a3e3a 100644 --- a/sound/sparc/cs4231.c +++ b/sound/sparc/cs4231.c | |||
| @@ -2284,15 +2284,14 @@ static int __init cs4231_init(void) | |||
| 2284 | for_each_ebusdev(edev, ebus) { | 2284 | for_each_ebusdev(edev, ebus) { |
| 2285 | int match = 0; | 2285 | int match = 0; |
| 2286 | 2286 | ||
| 2287 | if (!strcmp(edev->prom_name, "SUNW,CS4231")) { | 2287 | if (!strcmp(edev->prom_node->name, "SUNW,CS4231")) { |
| 2288 | match = 1; | 2288 | match = 1; |
| 2289 | } else if (!strcmp(edev->prom_name, "audio")) { | 2289 | } else if (!strcmp(edev->prom_node->name, "audio")) { |
| 2290 | char compat[16]; | 2290 | char *compat; |
| 2291 | 2291 | ||
| 2292 | prom_getstring(edev->prom_node, "compatible", | 2292 | compat = of_get_property(edev->prom_node, |
| 2293 | compat, sizeof(compat)); | 2293 | "compatible", NULL); |
| 2294 | compat[15] = '\0'; | 2294 | if (compat && !strcmp(compat, "SUNW,CS4231")) |
| 2295 | if (!strcmp(compat, "SUNW,CS4231")) | ||
| 2296 | match = 1; | 2295 | match = 1; |
| 2297 | } | 2296 | } |
| 2298 | 2297 | ||
