diff options
author | Kevin Hilman <khilman@deeprootsystems.com> | 2009-07-15 11:47:48 -0400 |
---|---|---|
committer | Kevin Hilman <khilman@deeprootsystems.com> | 2009-08-26 04:55:47 -0400 |
commit | 61aa07328d8e70d95a1e2325288df52a1e92a694 (patch) | |
tree | 3dc8f176b9b58b1bec5e2b28cd2a3aa8608c54d6 /arch/arm/mach-davinci | |
parent | 548197bdf02882db39b7563d26975e7549e6af03 (diff) |
davinci: audio clocks: use struct device instead of clock names
There is no need to pass clock name strings in platform_data.
Instead, setup clkdev nodes to have correct ASoC device names.
Signed-off-by: Kevin Hilman <khilman@deeprootsystems.com>
Diffstat (limited to 'arch/arm/mach-davinci')
-rw-r--r-- | arch/arm/mach-davinci/board-dm355-evm.c | 4 | ||||
-rw-r--r-- | arch/arm/mach-davinci/board-dm644x-evm.c | 4 | ||||
-rw-r--r-- | arch/arm/mach-davinci/board-dm646x-evm.c | 2 | ||||
-rw-r--r-- | arch/arm/mach-davinci/dm355.c | 6 | ||||
-rw-r--r-- | arch/arm/mach-davinci/dm644x.c | 2 | ||||
-rw-r--r-- | arch/arm/mach-davinci/dm646x.c | 4 | ||||
-rw-r--r-- | arch/arm/mach-davinci/include/mach/asp.h | 1 |
7 files changed, 8 insertions, 15 deletions
diff --git a/arch/arm/mach-davinci/board-dm355-evm.c b/arch/arm/mach-davinci/board-dm355-evm.c index 4ef6dbeccf3c..38157f78e1a4 100644 --- a/arch/arm/mach-davinci/board-dm355-evm.c +++ b/arch/arm/mach-davinci/board-dm355-evm.c | |||
@@ -117,9 +117,7 @@ static struct davinci_i2c_platform_data i2c_pdata = { | |||
117 | .bus_delay = 0 /* usec */, | 117 | .bus_delay = 0 /* usec */, |
118 | }; | 118 | }; |
119 | 119 | ||
120 | static struct snd_platform_data dm355_evm_snd_data = { | 120 | static struct snd_platform_data dm355_evm_snd_data; |
121 | .clk_name = "asp1", | ||
122 | }; | ||
123 | 121 | ||
124 | static int dm355evm_mmc_gpios = -EINVAL; | 122 | static int dm355evm_mmc_gpios = -EINVAL; |
125 | 123 | ||
diff --git a/arch/arm/mach-davinci/board-dm644x-evm.c b/arch/arm/mach-davinci/board-dm644x-evm.c index d37f5c204b66..6a27c5db3282 100644 --- a/arch/arm/mach-davinci/board-dm644x-evm.c +++ b/arch/arm/mach-davinci/board-dm644x-evm.c | |||
@@ -225,9 +225,7 @@ static struct platform_device ide_dev = { | |||
225 | }, | 225 | }, |
226 | }; | 226 | }; |
227 | 227 | ||
228 | static struct snd_platform_data dm644x_evm_snd_data = { | 228 | static struct snd_platform_data dm644x_evm_snd_data; |
229 | .clk_name = "asp0", | ||
230 | }; | ||
231 | 229 | ||
232 | /*----------------------------------------------------------------------*/ | 230 | /*----------------------------------------------------------------------*/ |
233 | 231 | ||
diff --git a/arch/arm/mach-davinci/board-dm646x-evm.c b/arch/arm/mach-davinci/board-dm646x-evm.c index fa91520532ac..cb30afe22050 100644 --- a/arch/arm/mach-davinci/board-dm646x-evm.c +++ b/arch/arm/mach-davinci/board-dm646x-evm.c | |||
@@ -268,7 +268,6 @@ static u8 dm646x_dit_serializer_direction[] = { | |||
268 | 268 | ||
269 | static struct snd_platform_data dm646x_evm_snd_data[] = { | 269 | static struct snd_platform_data dm646x_evm_snd_data[] = { |
270 | { | 270 | { |
271 | .clk_name = "mcasp0", | ||
272 | .tx_dma_offset = 0x400, | 271 | .tx_dma_offset = 0x400, |
273 | .rx_dma_offset = 0x400, | 272 | .rx_dma_offset = 0x400, |
274 | .op_mode = DAVINCI_MCASP_IIS_MODE, | 273 | .op_mode = DAVINCI_MCASP_IIS_MODE, |
@@ -278,7 +277,6 @@ static struct snd_platform_data dm646x_evm_snd_data[] = { | |||
278 | .eventq_no = EVENTQ_0, | 277 | .eventq_no = EVENTQ_0, |
279 | }, | 278 | }, |
280 | { | 279 | { |
281 | .clk_name = "mcasp1", | ||
282 | .tx_dma_offset = 0x400, | 280 | .tx_dma_offset = 0x400, |
283 | .rx_dma_offset = 0, | 281 | .rx_dma_offset = 0, |
284 | .op_mode = DAVINCI_MCASP_DIT_MODE, | 282 | .op_mode = DAVINCI_MCASP_DIT_MODE, |
diff --git a/arch/arm/mach-davinci/dm355.c b/arch/arm/mach-davinci/dm355.c index b4d709a8612a..3abeb3eb9b24 100644 --- a/arch/arm/mach-davinci/dm355.c +++ b/arch/arm/mach-davinci/dm355.c | |||
@@ -361,8 +361,8 @@ static struct davinci_clk dm355_clks[] = { | |||
361 | CLK(NULL, "uart1", &uart1_clk), | 361 | CLK(NULL, "uart1", &uart1_clk), |
362 | CLK(NULL, "uart2", &uart2_clk), | 362 | CLK(NULL, "uart2", &uart2_clk), |
363 | CLK("i2c_davinci.1", NULL, &i2c_clk), | 363 | CLK("i2c_davinci.1", NULL, &i2c_clk), |
364 | CLK(NULL, "asp0", &asp0_clk), | 364 | CLK("davinci-asp.0", NULL, &asp0_clk), |
365 | CLK(NULL, "asp1", &asp1_clk), | 365 | CLK("davinci-asp.1", NULL, &asp1_clk), |
366 | CLK("davinci_mmc.0", NULL, &mmcsd0_clk), | 366 | CLK("davinci_mmc.0", NULL, &mmcsd0_clk), |
367 | CLK("davinci_mmc.1", NULL, &mmcsd1_clk), | 367 | CLK("davinci_mmc.1", NULL, &mmcsd1_clk), |
368 | CLK(NULL, "spi0", &spi0_clk), | 368 | CLK(NULL, "spi0", &spi0_clk), |
@@ -648,7 +648,7 @@ static struct resource dm355_asp1_resources[] = { | |||
648 | 648 | ||
649 | static struct platform_device dm355_asp1_device = { | 649 | static struct platform_device dm355_asp1_device = { |
650 | .name = "davinci-asp", | 650 | .name = "davinci-asp", |
651 | .id = -1, | 651 | .id = 1, |
652 | .num_resources = ARRAY_SIZE(dm355_asp1_resources), | 652 | .num_resources = ARRAY_SIZE(dm355_asp1_resources), |
653 | .resource = dm355_asp1_resources, | 653 | .resource = dm355_asp1_resources, |
654 | }; | 654 | }; |
diff --git a/arch/arm/mach-davinci/dm644x.c b/arch/arm/mach-davinci/dm644x.c index 55317b1cf865..e554aa6c9a84 100644 --- a/arch/arm/mach-davinci/dm644x.c +++ b/arch/arm/mach-davinci/dm644x.c | |||
@@ -304,7 +304,7 @@ struct davinci_clk dm644x_clks[] = { | |||
304 | CLK("davinci_emac.1", NULL, &emac_clk), | 304 | CLK("davinci_emac.1", NULL, &emac_clk), |
305 | CLK("i2c_davinci.1", NULL, &i2c_clk), | 305 | CLK("i2c_davinci.1", NULL, &i2c_clk), |
306 | CLK("palm_bk3710", NULL, &ide_clk), | 306 | CLK("palm_bk3710", NULL, &ide_clk), |
307 | CLK(NULL, "asp0", &asp_clk), | 307 | CLK("davinci-asp", NULL, &asp_clk), |
308 | CLK("davinci_mmc.0", NULL, &mmcsd_clk), | 308 | CLK("davinci_mmc.0", NULL, &mmcsd_clk), |
309 | CLK(NULL, "spi", &spi_clk), | 309 | CLK(NULL, "spi", &spi_clk), |
310 | CLK(NULL, "gpio", &gpio_clk), | 310 | CLK(NULL, "gpio", &gpio_clk), |
diff --git a/arch/arm/mach-davinci/dm646x.c b/arch/arm/mach-davinci/dm646x.c index 3516f7699db2..8fa28039f27e 100644 --- a/arch/arm/mach-davinci/dm646x.c +++ b/arch/arm/mach-davinci/dm646x.c | |||
@@ -334,8 +334,8 @@ struct davinci_clk dm646x_clks[] = { | |||
334 | CLK(NULL, "uart2", &uart2_clk), | 334 | CLK(NULL, "uart2", &uart2_clk), |
335 | CLK("i2c_davinci.1", NULL, &i2c_clk), | 335 | CLK("i2c_davinci.1", NULL, &i2c_clk), |
336 | CLK(NULL, "gpio", &gpio_clk), | 336 | CLK(NULL, "gpio", &gpio_clk), |
337 | CLK(NULL, "mcasp0", &mcasp0_clk), | 337 | CLK("davinci-mcasp.0", NULL, &mcasp0_clk), |
338 | CLK(NULL, "mcasp1", &mcasp1_clk), | 338 | CLK("davinci-mcasp.1", NULL, &mcasp1_clk), |
339 | CLK(NULL, "aemif", &aemif_clk), | 339 | CLK(NULL, "aemif", &aemif_clk), |
340 | CLK("davinci_emac.1", NULL, &emac_clk), | 340 | CLK("davinci_emac.1", NULL, &emac_clk), |
341 | CLK(NULL, "pwm0", &pwm0_clk), | 341 | CLK(NULL, "pwm0", &pwm0_clk), |
diff --git a/arch/arm/mach-davinci/include/mach/asp.h b/arch/arm/mach-davinci/include/mach/asp.h index 038ecb7c231b..cdf1f4442330 100644 --- a/arch/arm/mach-davinci/include/mach/asp.h +++ b/arch/arm/mach-davinci/include/mach/asp.h | |||
@@ -33,7 +33,6 @@ | |||
33 | #define DAVINCI_ASP1_TX_INT IRQ_MBXINT | 33 | #define DAVINCI_ASP1_TX_INT IRQ_MBXINT |
34 | 34 | ||
35 | struct snd_platform_data { | 35 | struct snd_platform_data { |
36 | char *clk_name; | ||
37 | u32 tx_dma_offset; | 36 | u32 tx_dma_offset; |
38 | u32 rx_dma_offset; | 37 | u32 rx_dma_offset; |
39 | enum dma_event_q eventq_no; /* event queue number */ | 38 | enum dma_event_q eventq_no; /* event queue number */ |