| OLD | NEW |
| 1 /* | 1 /* |
| 2 * kirkwood-openrd.c | 2 * kirkwood-openrd.c |
| 3 * | 3 * |
| 4 * (c) 2010 Arnaud Patard <apatard@mandriva.com> | 4 * (c) 2010 Arnaud Patard <apatard@mandriva.com> |
| 5 * (c) 2010 Arnaud Patard <arnaud.patard@rtp-net.org> | 5 * (c) 2010 Arnaud Patard <arnaud.patard@rtp-net.org> |
| 6 * | 6 * |
| 7 * This program is free software; you can redistribute it and/or modify it | 7 * This program is free software; you can redistribute it and/or modify it |
| 8 * under the terms of the GNU General Public License as published by the | 8 * under the terms of the GNU General Public License as published by the |
| 9 * Free Software Foundation; either version 2 of the License, or (at your | 9 * Free Software Foundation; either version 2 of the License, or (at your |
| 10 * option) any later version. | 10 * option) any later version. |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 79 .dai_link = openrd_client_dai, | 79 .dai_link = openrd_client_dai, |
| 80 .num_links = ARRAY_SIZE(openrd_client_dai), | 80 .num_links = ARRAY_SIZE(openrd_client_dai), |
| 81 }; | 81 }; |
| 82 | 82 |
| 83 static struct platform_device *openrd_client_snd_device; | 83 static struct platform_device *openrd_client_snd_device; |
| 84 | 84 |
| 85 static int __init openrd_client_init(void) | 85 static int __init openrd_client_init(void) |
| 86 { | 86 { |
| 87 int ret; | 87 int ret; |
| 88 | 88 |
| 89 » if (!machine_is_openrd_client()) | 89 » if (!machine_is_openrd_client() && !machine_is_openrd_ultimate()) |
| 90 return 0; | 90 return 0; |
| 91 | 91 |
| 92 openrd_client_snd_device = platform_device_alloc("soc-audio", -1); | 92 openrd_client_snd_device = platform_device_alloc("soc-audio", -1); |
| 93 if (!openrd_client_snd_device) | 93 if (!openrd_client_snd_device) |
| 94 return -ENOMEM; | 94 return -ENOMEM; |
| 95 | 95 |
| 96 platform_set_drvdata(openrd_client_snd_device, | 96 platform_set_drvdata(openrd_client_snd_device, |
| 97 &openrd_client); | 97 &openrd_client); |
| 98 | 98 |
| 99 ret = platform_device_add(openrd_client_snd_device); | 99 ret = platform_device_add(openrd_client_snd_device); |
| (...skipping 11 matching lines...) Expand all Loading... |
| 111 } | 111 } |
| 112 | 112 |
| 113 module_init(openrd_client_init); | 113 module_init(openrd_client_init); |
| 114 module_exit(openrd_client_exit); | 114 module_exit(openrd_client_exit); |
| 115 | 115 |
| 116 /* Module information */ | 116 /* Module information */ |
| 117 MODULE_AUTHOR("Arnaud Patard <arnaud.patard@rtp-net.org>"); | 117 MODULE_AUTHOR("Arnaud Patard <arnaud.patard@rtp-net.org>"); |
| 118 MODULE_DESCRIPTION("ALSA SoC OpenRD Client"); | 118 MODULE_DESCRIPTION("ALSA SoC OpenRD Client"); |
| 119 MODULE_LICENSE("GPL"); | 119 MODULE_LICENSE("GPL"); |
| 120 MODULE_ALIAS("platform:soc-audio"); | 120 MODULE_ALIAS("platform:soc-audio"); |
| OLD | NEW |