diff options
author | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2011-01-26 09:17:20 -0500 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2011-01-27 06:56:13 -0500 |
commit | e7361ec4996c170c63c4ac379085896db85ff34d (patch) | |
tree | 800a098271e33a38031d7d761f35328b853e1693 /sound/soc/fsl | |
parent | 70b2ac126a60c87145ae8a8eb1b4dccaa0bf5468 (diff) |
ASoC: Replace pdev with card in machine driver probe and remove
In order to support cards instantiated without using soc-audio remove
the use of the platform device in the card probe() and remove() ops.
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Acked-by: Liam Girdwood <lrg@slimlogic.co.uk>
Diffstat (limited to 'sound/soc/fsl')
-rw-r--r-- | sound/soc/fsl/mpc8610_hpcd.c | 6 | ||||
-rw-r--r-- | sound/soc/fsl/p1022_ds.c | 6 |
2 files changed, 4 insertions, 8 deletions
diff --git a/sound/soc/fsl/mpc8610_hpcd.c b/sound/soc/fsl/mpc8610_hpcd.c index 7d7847a1e66b..c16c6b2eff95 100644 --- a/sound/soc/fsl/mpc8610_hpcd.c +++ b/sound/soc/fsl/mpc8610_hpcd.c | |||
@@ -53,9 +53,8 @@ struct mpc8610_hpcd_data { | |||
53 | * | 53 | * |
54 | * Here we program the DMACR and PMUXCR registers. | 54 | * Here we program the DMACR and PMUXCR registers. |
55 | */ | 55 | */ |
56 | static int mpc8610_hpcd_machine_probe(struct platform_device *sound_device) | 56 | static int mpc8610_hpcd_machine_probe(struct snd_soc_card *card) |
57 | { | 57 | { |
58 | struct snd_soc_card *card = platform_get_drvdata(sound_device); | ||
59 | struct mpc8610_hpcd_data *machine_data = | 58 | struct mpc8610_hpcd_data *machine_data = |
60 | container_of(card, struct mpc8610_hpcd_data, card); | 59 | container_of(card, struct mpc8610_hpcd_data, card); |
61 | struct ccsr_guts_86xx __iomem *guts; | 60 | struct ccsr_guts_86xx __iomem *guts; |
@@ -138,9 +137,8 @@ static int mpc8610_hpcd_startup(struct snd_pcm_substream *substream) | |||
138 | * This function is called to remove the sound device for one SSI. We | 137 | * This function is called to remove the sound device for one SSI. We |
139 | * de-program the DMACR and PMUXCR register. | 138 | * de-program the DMACR and PMUXCR register. |
140 | */ | 139 | */ |
141 | static int mpc8610_hpcd_machine_remove(struct platform_device *sound_device) | 140 | static int mpc8610_hpcd_machine_remove(struct snd_soc_card *card) |
142 | { | 141 | { |
143 | struct snd_soc_card *card = platform_get_drvdata(sound_device); | ||
144 | struct mpc8610_hpcd_data *machine_data = | 142 | struct mpc8610_hpcd_data *machine_data = |
145 | container_of(card, struct mpc8610_hpcd_data, card); | 143 | container_of(card, struct mpc8610_hpcd_data, card); |
146 | struct ccsr_guts_86xx __iomem *guts; | 144 | struct ccsr_guts_86xx __iomem *guts; |
diff --git a/sound/soc/fsl/p1022_ds.c b/sound/soc/fsl/p1022_ds.c index 026b756961e0..66e0b68af147 100644 --- a/sound/soc/fsl/p1022_ds.c +++ b/sound/soc/fsl/p1022_ds.c | |||
@@ -85,9 +85,8 @@ struct machine_data { | |||
85 | * | 85 | * |
86 | * Here we program the DMACR and PMUXCR registers. | 86 | * Here we program the DMACR and PMUXCR registers. |
87 | */ | 87 | */ |
88 | static int p1022_ds_machine_probe(struct platform_device *sound_device) | 88 | static int p1022_ds_machine_probe(struct snd_soc_card *card) |
89 | { | 89 | { |
90 | struct snd_soc_card *card = platform_get_drvdata(sound_device); | ||
91 | struct machine_data *mdata = | 90 | struct machine_data *mdata = |
92 | container_of(card, struct machine_data, card); | 91 | container_of(card, struct machine_data, card); |
93 | struct ccsr_guts_85xx __iomem *guts; | 92 | struct ccsr_guts_85xx __iomem *guts; |
@@ -160,9 +159,8 @@ static int p1022_ds_startup(struct snd_pcm_substream *substream) | |||
160 | * This function is called to remove the sound device for one SSI. We | 159 | * This function is called to remove the sound device for one SSI. We |
161 | * de-program the DMACR and PMUXCR register. | 160 | * de-program the DMACR and PMUXCR register. |
162 | */ | 161 | */ |
163 | static int p1022_ds_machine_remove(struct platform_device *sound_device) | 162 | static int p1022_ds_machine_remove(struct snd_soc_card *card) |
164 | { | 163 | { |
165 | struct snd_soc_card *card = platform_get_drvdata(sound_device); | ||
166 | struct machine_data *mdata = | 164 | struct machine_data *mdata = |
167 | container_of(card, struct machine_data, card); | 165 | container_of(card, struct machine_data, card); |
168 | struct ccsr_guts_85xx __iomem *guts; | 166 | struct ccsr_guts_85xx __iomem *guts; |