diff options
author | Shawn Guo <shawn.guo@linaro.org> | 2012-02-24 09:09:36 -0500 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2012-02-28 07:35:04 -0500 |
commit | fb1a6453bc413841876eac2ed1d7fd9e74b118fc (patch) | |
tree | 70a995d00d0b18264044c20c75ab6b5be59cf56a /sound/soc/fsl/p1022_ds.c | |
parent | 2c823d14bfad16e75d16674a312a779a1485a2bd (diff) |
ASoC: fsl: correct get_dma_channel parameter name
The second parameter of function get_dma_channel is actually a property
name rather than a compatible string, so rename it for less confusing.
Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
Acked-by: Timur Tabi <timur@freescale.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'sound/soc/fsl/p1022_ds.c')
-rw-r--r-- | sound/soc/fsl/p1022_ds.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/soc/fsl/p1022_ds.c b/sound/soc/fsl/p1022_ds.c index a5d4e80a9cf4..d32ec4646d25 100644 --- a/sound/soc/fsl/p1022_ds.c +++ b/sound/soc/fsl/p1022_ds.c | |||
@@ -276,7 +276,7 @@ static int codec_node_dev_name(struct device_node *np, char *buf, size_t len) | |||
276 | } | 276 | } |
277 | 277 | ||
278 | static int get_dma_channel(struct device_node *ssi_np, | 278 | static int get_dma_channel(struct device_node *ssi_np, |
279 | const char *compatible, | 279 | const char *name, |
280 | struct snd_soc_dai_link *dai, | 280 | struct snd_soc_dai_link *dai, |
281 | unsigned int *dma_channel_id, | 281 | unsigned int *dma_channel_id, |
282 | unsigned int *dma_id) | 282 | unsigned int *dma_id) |
@@ -286,7 +286,7 @@ static int get_dma_channel(struct device_node *ssi_np, | |||
286 | const u32 *iprop; | 286 | const u32 *iprop; |
287 | int ret; | 287 | int ret; |
288 | 288 | ||
289 | dma_channel_np = get_node_by_phandle_name(ssi_np, compatible, | 289 | dma_channel_np = get_node_by_phandle_name(ssi_np, name, |
290 | "fsl,ssi-dma-channel"); | 290 | "fsl,ssi-dma-channel"); |
291 | if (!dma_channel_np) | 291 | if (!dma_channel_np) |
292 | return -EINVAL; | 292 | return -EINVAL; |