diff options
Diffstat (limited to 'sound/soc/fsl')
-rw-r--r-- | sound/soc/fsl/imx-audmux.c | 8 | ||||
-rw-r--r-- | sound/soc/fsl/mpc8610_hpcd.c | 8 | ||||
-rw-r--r-- | sound/soc/fsl/p1022_ds.c | 10 |
3 files changed, 10 insertions, 16 deletions
diff --git a/sound/soc/fsl/imx-audmux.c b/sound/soc/fsl/imx-audmux.c index 601df809a26a..1765a197acb0 100644 --- a/sound/soc/fsl/imx-audmux.c +++ b/sound/soc/fsl/imx-audmux.c | |||
@@ -40,12 +40,6 @@ static void __iomem *audmux_base; | |||
40 | #ifdef CONFIG_DEBUG_FS | 40 | #ifdef CONFIG_DEBUG_FS |
41 | static struct dentry *audmux_debugfs_root; | 41 | static struct dentry *audmux_debugfs_root; |
42 | 42 | ||
43 | static int audmux_open_file(struct inode *inode, struct file *file) | ||
44 | { | ||
45 | file->private_data = inode->i_private; | ||
46 | return 0; | ||
47 | } | ||
48 | |||
49 | /* There is an annoying discontinuity in the SSI numbering with regard | 43 | /* There is an annoying discontinuity in the SSI numbering with regard |
50 | * to the Linux number of the devices */ | 44 | * to the Linux number of the devices */ |
51 | static const char *audmux_port_string(int port) | 45 | static const char *audmux_port_string(int port) |
@@ -142,7 +136,7 @@ static ssize_t audmux_read_file(struct file *file, char __user *user_buf, | |||
142 | } | 136 | } |
143 | 137 | ||
144 | static const struct file_operations audmux_debugfs_fops = { | 138 | static const struct file_operations audmux_debugfs_fops = { |
145 | .open = audmux_open_file, | 139 | .open = simple_open, |
146 | .read = audmux_read_file, | 140 | .read = audmux_read_file, |
147 | .llseek = default_llseek, | 141 | .llseek = default_llseek, |
148 | }; | 142 | }; |
diff --git a/sound/soc/fsl/mpc8610_hpcd.c b/sound/soc/fsl/mpc8610_hpcd.c index 8fdc430a4f68..60bcba1bc30e 100644 --- a/sound/soc/fsl/mpc8610_hpcd.c +++ b/sound/soc/fsl/mpc8610_hpcd.c | |||
@@ -55,9 +55,9 @@ static int mpc8610_hpcd_machine_probe(struct snd_soc_card *card) | |||
55 | { | 55 | { |
56 | struct mpc8610_hpcd_data *machine_data = | 56 | struct mpc8610_hpcd_data *machine_data = |
57 | container_of(card, struct mpc8610_hpcd_data, card); | 57 | container_of(card, struct mpc8610_hpcd_data, card); |
58 | struct ccsr_guts_86xx __iomem *guts; | 58 | struct ccsr_guts __iomem *guts; |
59 | 59 | ||
60 | guts = ioremap(guts_phys, sizeof(struct ccsr_guts_86xx)); | 60 | guts = ioremap(guts_phys, sizeof(struct ccsr_guts)); |
61 | if (!guts) { | 61 | if (!guts) { |
62 | dev_err(card->dev, "could not map global utilities\n"); | 62 | dev_err(card->dev, "could not map global utilities\n"); |
63 | return -ENOMEM; | 63 | return -ENOMEM; |
@@ -139,9 +139,9 @@ static int mpc8610_hpcd_machine_remove(struct snd_soc_card *card) | |||
139 | { | 139 | { |
140 | struct mpc8610_hpcd_data *machine_data = | 140 | struct mpc8610_hpcd_data *machine_data = |
141 | container_of(card, struct mpc8610_hpcd_data, card); | 141 | container_of(card, struct mpc8610_hpcd_data, card); |
142 | struct ccsr_guts_86xx __iomem *guts; | 142 | struct ccsr_guts __iomem *guts; |
143 | 143 | ||
144 | guts = ioremap(guts_phys, sizeof(struct ccsr_guts_86xx)); | 144 | guts = ioremap(guts_phys, sizeof(struct ccsr_guts)); |
145 | if (!guts) { | 145 | if (!guts) { |
146 | dev_err(card->dev, "could not map global utilities\n"); | 146 | dev_err(card->dev, "could not map global utilities\n"); |
147 | return -ENOMEM; | 147 | return -ENOMEM; |
diff --git a/sound/soc/fsl/p1022_ds.c b/sound/soc/fsl/p1022_ds.c index 202298556ba7..50adf4032bcc 100644 --- a/sound/soc/fsl/p1022_ds.c +++ b/sound/soc/fsl/p1022_ds.c | |||
@@ -46,7 +46,7 @@ | |||
46 | * ch: The channel on the DMA controller (0, 1, 2, or 3) | 46 | * ch: The channel on the DMA controller (0, 1, 2, or 3) |
47 | * device: The device to set as the target (CCSR_GUTS_DMUXCR_xxx) | 47 | * device: The device to set as the target (CCSR_GUTS_DMUXCR_xxx) |
48 | */ | 48 | */ |
49 | static inline void guts_set_dmuxcr(struct ccsr_guts_85xx __iomem *guts, | 49 | static inline void guts_set_dmuxcr(struct ccsr_guts __iomem *guts, |
50 | unsigned int co, unsigned int ch, unsigned int device) | 50 | unsigned int co, unsigned int ch, unsigned int device) |
51 | { | 51 | { |
52 | unsigned int shift = 16 + (8 * (1 - co) + 2 * (3 - ch)); | 52 | unsigned int shift = 16 + (8 * (1 - co) + 2 * (3 - ch)); |
@@ -87,9 +87,9 @@ static int p1022_ds_machine_probe(struct snd_soc_card *card) | |||
87 | { | 87 | { |
88 | struct machine_data *mdata = | 88 | struct machine_data *mdata = |
89 | container_of(card, struct machine_data, card); | 89 | container_of(card, struct machine_data, card); |
90 | struct ccsr_guts_85xx __iomem *guts; | 90 | struct ccsr_guts __iomem *guts; |
91 | 91 | ||
92 | guts = ioremap(guts_phys, sizeof(struct ccsr_guts_85xx)); | 92 | guts = ioremap(guts_phys, sizeof(struct ccsr_guts)); |
93 | if (!guts) { | 93 | if (!guts) { |
94 | dev_err(card->dev, "could not map global utilities\n"); | 94 | dev_err(card->dev, "could not map global utilities\n"); |
95 | return -ENOMEM; | 95 | return -ENOMEM; |
@@ -161,9 +161,9 @@ static int p1022_ds_machine_remove(struct snd_soc_card *card) | |||
161 | { | 161 | { |
162 | struct machine_data *mdata = | 162 | struct machine_data *mdata = |
163 | container_of(card, struct machine_data, card); | 163 | container_of(card, struct machine_data, card); |
164 | struct ccsr_guts_85xx __iomem *guts; | 164 | struct ccsr_guts __iomem *guts; |
165 | 165 | ||
166 | guts = ioremap(guts_phys, sizeof(struct ccsr_guts_85xx)); | 166 | guts = ioremap(guts_phys, sizeof(struct ccsr_guts)); |
167 | if (!guts) { | 167 | if (!guts) { |
168 | dev_err(card->dev, "could not map global utilities\n"); | 168 | dev_err(card->dev, "could not map global utilities\n"); |
169 | return -ENOMEM; | 169 | return -ENOMEM; |