aboutsummaryrefslogtreecommitdiffstats
path: root/sound/soc/sh/fsi.c
diff options
context:
space:
mode:
Diffstat (limited to 'sound/soc/sh/fsi.c')
-rw-r--r--sound/soc/sh/fsi.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/sound/soc/sh/fsi.c b/sound/soc/sh/fsi.c
index 8e112ccffb13..a32fd16ad668 100644
--- a/sound/soc/sh/fsi.c
+++ b/sound/soc/sh/fsi.c
@@ -210,7 +210,7 @@ struct fsi_master {
210 * basic read write function 210 * basic read write function
211 */ 211 */
212 212
213static void __fsi_reg_write(u32 reg, u32 data) 213static void __fsi_reg_write(u32 __iomem *reg, u32 data)
214{ 214{
215 /* valid data area is 24bit */ 215 /* valid data area is 24bit */
216 data &= 0x00ffffff; 216 data &= 0x00ffffff;
@@ -218,12 +218,12 @@ static void __fsi_reg_write(u32 reg, u32 data)
218 __raw_writel(data, reg); 218 __raw_writel(data, reg);
219} 219}
220 220
221static u32 __fsi_reg_read(u32 reg) 221static u32 __fsi_reg_read(u32 __iomem *reg)
222{ 222{
223 return __raw_readl(reg); 223 return __raw_readl(reg);
224} 224}
225 225
226static void __fsi_reg_mask_set(u32 reg, u32 mask, u32 data) 226static void __fsi_reg_mask_set(u32 __iomem *reg, u32 mask, u32 data)
227{ 227{
228 u32 val = __fsi_reg_read(reg); 228 u32 val = __fsi_reg_read(reg);
229 229
@@ -250,7 +250,7 @@ static u32 _fsi_master_read(struct fsi_master *master, u32 reg)
250 unsigned long flags; 250 unsigned long flags;
251 251
252 spin_lock_irqsave(&master->lock, flags); 252 spin_lock_irqsave(&master->lock, flags);
253 ret = __fsi_reg_read((u32)(master->base + reg)); 253 ret = __fsi_reg_read(master->base + reg);
254 spin_unlock_irqrestore(&master->lock, flags); 254 spin_unlock_irqrestore(&master->lock, flags);
255 255
256 return ret; 256 return ret;
@@ -264,7 +264,7 @@ static void _fsi_master_mask_set(struct fsi_master *master,
264 unsigned long flags; 264 unsigned long flags;
265 265
266 spin_lock_irqsave(&master->lock, flags); 266 spin_lock_irqsave(&master->lock, flags);
267 __fsi_reg_mask_set((u32)(master->base + reg), mask, data); 267 __fsi_reg_mask_set(master->base + reg, mask, data);
268 spin_unlock_irqrestore(&master->lock, flags); 268 spin_unlock_irqrestore(&master->lock, flags);
269} 269}
270 270
@@ -1285,7 +1285,7 @@ static int fsi_probe(struct platform_device *pdev)
1285 pm_runtime_enable(&pdev->dev); 1285 pm_runtime_enable(&pdev->dev);
1286 dev_set_drvdata(&pdev->dev, master); 1286 dev_set_drvdata(&pdev->dev, master);
1287 1287
1288 ret = request_irq(irq, &fsi_interrupt, IRQF_DISABLED, 1288 ret = request_irq(irq, &fsi_interrupt, 0,
1289 id_entry->name, master); 1289 id_entry->name, master);
1290 if (ret) { 1290 if (ret) {
1291 dev_err(&pdev->dev, "irq request err\n"); 1291 dev_err(&pdev->dev, "irq request err\n");