aboutsummaryrefslogtreecommitdiffstats
path: root/sound/soc/sh
diff options
context:
space:
mode:
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>2010-12-03 03:37:31 -0500
committerMark Brown <broonie@opensource.wolfsonmicro.com>2010-12-03 07:23:24 -0500
commit48d78e5879b9f9e1beed341f6a30add127f43907 (patch)
tree03859b9d2d0908d466c0d571e5aba326a9884d36 /sound/soc/sh
parentf7d711e3bb92fcf01ee14b7decf0059ac184efc2 (diff)
ASoC: sh: fsi: remove fsi_master_write
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Acked-by: Liam Girdwood <lrg@slimlogic.co.uk> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'sound/soc/sh')
-rw-r--r--sound/soc/sh/fsi.c23
1 files changed, 2 insertions, 21 deletions
diff --git a/sound/soc/sh/fsi.c b/sound/soc/sh/fsi.c
index 76ef3f34dd02..41f49776d6f2 100644
--- a/sound/soc/sh/fsi.c
+++ b/sound/soc/sh/fsi.c
@@ -221,21 +221,6 @@ static void fsi_reg_mask_set(struct fsi_priv *fsi, u32 reg, u32 mask, u32 data)
221 __fsi_reg_mask_set((u32)(fsi->base + reg), mask, data); 221 __fsi_reg_mask_set((u32)(fsi->base + reg), mask, data);
222} 222}
223 223
224static void fsi_master_write(struct fsi_master *master, u32 reg, u32 data)
225{
226 unsigned long flags;
227
228 if ((reg < MREG_START) ||
229 (reg > MREG_END)) {
230 pr_err("fsi: register access err (%s)\n", __func__);
231 return;
232 }
233
234 spin_lock_irqsave(&master->lock, flags);
235 __fsi_reg_write((u32)(master->base + reg), data);
236 spin_unlock_irqrestore(&master->lock, flags);
237}
238
239static u32 fsi_master_read(struct fsi_master *master, u32 reg) 224static u32 fsi_master_read(struct fsi_master *master, u32 reg)
240{ 225{
241 u32 ret; 226 u32 ret;
@@ -500,11 +485,6 @@ static u32 fsi_irq_get_status(struct fsi_master *master)
500 return fsi_master_read(master, master->core->int_st); 485 return fsi_master_read(master, master->core->int_st);
501} 486}
502 487
503static void fsi_irq_clear_all_status(struct fsi_master *master)
504{
505 fsi_master_write(master, master->core->int_st, 0);
506}
507
508static void fsi_irq_clear_status(struct fsi_priv *fsi) 488static void fsi_irq_clear_status(struct fsi_priv *fsi)
509{ 489{
510 u32 data = 0; 490 u32 data = 0;
@@ -756,7 +736,8 @@ static irqreturn_t fsi_interrupt(int irq, void *data)
756 if (int_st & AB_IO(1, BI_SHIFT)) 736 if (int_st & AB_IO(1, BI_SHIFT))
757 fsi_data_pop(&master->fsib, 0); 737 fsi_data_pop(&master->fsib, 0);
758 738
759 fsi_irq_clear_all_status(master); 739 fsi_irq_clear_status(&master->fsia);
740 fsi_irq_clear_status(&master->fsib);
760 741
761 return IRQ_HANDLED; 742 return IRQ_HANDLED;
762} 743}