* [AT91] Fix AC97 breakage
@ 2009-09-22 9:47 Andrew Victor
2009-09-22 19:33 ` Russell King - ARM Linux
0 siblings, 1 reply; 2+ messages in thread
From: Andrew Victor @ 2009-09-22 9:47 UTC (permalink / raw)
To: linux-arm-kernel
Fix AC97 build breakage with converting to the shared AT91/AVR32 AC97 driver:
struct atmel_ac97_data -> struct ac97c_platform_data
CONFIG_SND_AT91_AC97 -> CONFIG_SND_ATMEL_AC97C
Signed-off-by: Andrew Victor <linux@maxim.org.za>
diff -urN linux-2.6.31-git.orig/arch/arm/mach-at91/at91cap9_devices.c
linux-2.6.31-git/arch/arm/mach-at91/at91cap9_devices.c
--- linux-2.6.31-git.orig/arch/arm/mach-at91/at91cap9_devices.c 2009-06-10
05:05:27.000000000 +0200
+++ linux-2.6.31-git/arch/arm/mach-at91/at91cap9_devices.c 2009-09-22
11:26:36.000000000 +0200
@@ -771,9 +771,9 @@
* AC97
* -------------------------------------------------------------------- */
-#if defined(CONFIG_SND_AT91_AC97) || defined(CONFIG_SND_AT91_AC97_MODULE)
+#if defined(CONFIG_SND_ATMEL_AC97C) || defined(CONFIG_SND_ATMEL_AC97C_MODULE)
static u64 ac97_dmamask = DMA_BIT_MASK(32);
-static struct atmel_ac97_data ac97_data;
+static struct ac97c_platform_data ac97_data;
static struct resource ac97_resources[] = {
[0] = {
@@ -789,7 +789,7 @@
};
static struct platform_device at91cap9_ac97_device = {
- .name = "ac97c",
+ .name = "atmel_ac97c",
.id = 1,
.dev = {
.dma_mask = &ac97_dmamask,
@@ -800,7 +800,7 @@
.num_resources = ARRAY_SIZE(ac97_resources),
};
-void __init at91_add_device_ac97(struct atmel_ac97_data *data)
+void __init at91_add_device_ac97(struct ac97c_platform_data *data)
{
if (!data)
return;
@@ -818,7 +818,7 @@
platform_device_register(&at91cap9_ac97_device);
}
#else
-void __init at91_add_device_ac97(struct atmel_ac97_data *data) {}
+void __init at91_add_device_ac97(struct ac97c_platform_data *data) {}
#endif
diff -urN linux-2.6.31-git.orig/arch/arm/mach-at91/board-cap9adk.c
linux-2.6.31-git/arch/arm/mach-at91/board-cap9adk.c
--- linux-2.6.31-git.orig/arch/arm/mach-at91/board-cap9adk.c 2009-06-10
05:05:27.000000000 +0200
+++ linux-2.6.31-git/arch/arm/mach-at91/board-cap9adk.c 2009-09-22
11:13:35.000000000 +0200
@@ -364,7 +364,7 @@
/*
* AC97
*/
-static struct atmel_ac97_data cap9adk_ac97_data = {
+static struct ac97c_platform_data cap9adk_ac97_data = {
// .reset_pin = ... not connected
};
diff -urN linux-2.6.31-git.orig/arch/arm/mach-at91/board-neocore926.c
linux-2.6.31-git/arch/arm/mach-at91/board-neocore926.c
--- linux-2.6.31-git.orig/arch/arm/mach-at91/board-neocore926.c 2009-06-10
05:05:27.000000000 +0200
+++ linux-2.6.31-git/arch/arm/mach-at91/board-neocore926.c 2009-09-22
11:14:18.000000000 +0200
@@ -340,7 +340,7 @@
/*
* AC97
*/
-static struct atmel_ac97_data neocore926_ac97_data = {
+static struct ac97c_platform_data neocore926_ac97_data = {
.reset_pin = AT91_PIN_PA13,
};
^ permalink raw reply [flat|nested] 2+ messages in thread
* [AT91] Fix AC97 breakage
2009-09-22 9:47 [AT91] Fix AC97 breakage Andrew Victor
@ 2009-09-22 19:33 ` Russell King - ARM Linux
0 siblings, 0 replies; 2+ messages in thread
From: Russell King - ARM Linux @ 2009-09-22 19:33 UTC (permalink / raw)
To: linux-arm-kernel
On Tue, Sep 22, 2009 at 11:47:43AM +0200, Andrew Victor wrote:
> Fix AC97 build breakage with converting to the shared AT91/AVR32 AC97 driver:
> struct atmel_ac97_data -> struct ac97c_platform_data
> CONFIG_SND_AT91_AC97 -> CONFIG_SND_ATMEL_AC97C
>
> Signed-off-by: Andrew Victor <linux@maxim.org.za>
If this has been build-tested, please submit it to the patch system.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-09-22 19:33 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-09-22 9:47 [AT91] Fix AC97 breakage Andrew Victor
2009-09-22 19:33 ` Russell King - ARM Linux
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.