diff options
Diffstat (limited to 'sound')
-rw-r--r-- | sound/aoa/soundbus/i2sbus/core.c | 9 | ||||
-rw-r--r-- | sound/atmel/abdac.c | 2 | ||||
-rw-r--r-- | sound/atmel/ac97c.c | 2 | ||||
-rw-r--r-- | sound/pci/ice1712/ice1712.c | 2 | ||||
-rw-r--r-- | sound/ppc/pmac.c | 9 | ||||
-rw-r--r-- | sound/soc/ep93xx/ep93xx-i2s.c | 4 | ||||
-rw-r--r-- | sound/soc/ep93xx/ep93xx-pcm.c | 4 | ||||
-rw-r--r-- | sound/soc/ep93xx/snappercl15.c | 4 | ||||
-rw-r--r-- | sound/soc/fsl/mpc5200_dma.c | 2 | ||||
-rw-r--r-- | sound/soc/omap/ams-delta.c | 2 |
10 files changed, 18 insertions, 22 deletions
diff --git a/sound/aoa/soundbus/i2sbus/core.c b/sound/aoa/soundbus/i2sbus/core.c index 3ff8cc5f487a..010658335881 100644 --- a/sound/aoa/soundbus/i2sbus/core.c +++ b/sound/aoa/soundbus/i2sbus/core.c | |||
@@ -262,8 +262,7 @@ static int i2sbus_add_dev(struct macio_dev *macio, | |||
262 | */ | 262 | */ |
263 | dev->allocated_resource[i] = | 263 | dev->allocated_resource[i] = |
264 | request_mem_region(dev->resources[i].start, | 264 | request_mem_region(dev->resources[i].start, |
265 | dev->resources[i].end - | 265 | resource_size(&dev->resources[i]), |
266 | dev->resources[i].start + 1, | ||
267 | dev->rnames[i]); | 266 | dev->rnames[i]); |
268 | if (!dev->allocated_resource[i]) { | 267 | if (!dev->allocated_resource[i]) { |
269 | printk(KERN_ERR "i2sbus: failed to claim resource %d!\n", i); | 268 | printk(KERN_ERR "i2sbus: failed to claim resource %d!\n", i); |
@@ -272,19 +271,19 @@ static int i2sbus_add_dev(struct macio_dev *macio, | |||
272 | } | 271 | } |
273 | 272 | ||
274 | r = &dev->resources[aoa_resource_i2smmio]; | 273 | r = &dev->resources[aoa_resource_i2smmio]; |
275 | rlen = r->end - r->start + 1; | 274 | rlen = resource_size(r); |
276 | if (rlen < sizeof(struct i2s_interface_regs)) | 275 | if (rlen < sizeof(struct i2s_interface_regs)) |
277 | goto err; | 276 | goto err; |
278 | dev->intfregs = ioremap(r->start, rlen); | 277 | dev->intfregs = ioremap(r->start, rlen); |
279 | 278 | ||
280 | r = &dev->resources[aoa_resource_txdbdma]; | 279 | r = &dev->resources[aoa_resource_txdbdma]; |
281 | rlen = r->end - r->start + 1; | 280 | rlen = resource_size(r); |
282 | if (rlen < sizeof(struct dbdma_regs)) | 281 | if (rlen < sizeof(struct dbdma_regs)) |
283 | goto err; | 282 | goto err; |
284 | dev->out.dbdma = ioremap(r->start, rlen); | 283 | dev->out.dbdma = ioremap(r->start, rlen); |
285 | 284 | ||
286 | r = &dev->resources[aoa_resource_rxdbdma]; | 285 | r = &dev->resources[aoa_resource_rxdbdma]; |
287 | rlen = r->end - r->start + 1; | 286 | rlen = resource_size(r); |
288 | if (rlen < sizeof(struct dbdma_regs)) | 287 | if (rlen < sizeof(struct dbdma_regs)) |
289 | goto err; | 288 | goto err; |
290 | dev->in.dbdma = ioremap(r->start, rlen); | 289 | dev->in.dbdma = ioremap(r->start, rlen); |
diff --git a/sound/atmel/abdac.c b/sound/atmel/abdac.c index bfee60c4d4c0..6fd9391b3a6c 100644 --- a/sound/atmel/abdac.c +++ b/sound/atmel/abdac.c | |||
@@ -448,7 +448,7 @@ static int __devinit atmel_abdac_probe(struct platform_device *pdev) | |||
448 | goto out_free_card; | 448 | goto out_free_card; |
449 | } | 449 | } |
450 | 450 | ||
451 | dac->regs = ioremap(regs->start, regs->end - regs->start + 1); | 451 | dac->regs = ioremap(regs->start, resource_size(regs)); |
452 | if (!dac->regs) { | 452 | if (!dac->regs) { |
453 | dev_dbg(&pdev->dev, "could not remap register memory\n"); | 453 | dev_dbg(&pdev->dev, "could not remap register memory\n"); |
454 | goto out_free_card; | 454 | goto out_free_card; |
diff --git a/sound/atmel/ac97c.c b/sound/atmel/ac97c.c index ac35222ad0dd..6e5addeb236b 100644 --- a/sound/atmel/ac97c.c +++ b/sound/atmel/ac97c.c | |||
@@ -971,7 +971,7 @@ static int __devinit atmel_ac97c_probe(struct platform_device *pdev) | |||
971 | chip->card = card; | 971 | chip->card = card; |
972 | chip->pclk = pclk; | 972 | chip->pclk = pclk; |
973 | chip->pdev = pdev; | 973 | chip->pdev = pdev; |
974 | chip->regs = ioremap(regs->start, regs->end - regs->start + 1); | 974 | chip->regs = ioremap(regs->start, resource_size(regs)); |
975 | 975 | ||
976 | if (!chip->regs) { | 976 | if (!chip->regs) { |
977 | dev_dbg(&pdev->dev, "could not remap register memory\n"); | 977 | dev_dbg(&pdev->dev, "could not remap register memory\n"); |
diff --git a/sound/pci/ice1712/ice1712.c b/sound/pci/ice1712/ice1712.c index be06fb3e45a1..0ccc0eb75775 100644 --- a/sound/pci/ice1712/ice1712.c +++ b/sound/pci/ice1712/ice1712.c | |||
@@ -87,7 +87,7 @@ static char *id[SNDRV_CARDS] = SNDRV_DEFAULT_STR; /* ID for this card */ | |||
87 | static int enable[SNDRV_CARDS] = SNDRV_DEFAULT_ENABLE_PNP;/* Enable this card */ | 87 | static int enable[SNDRV_CARDS] = SNDRV_DEFAULT_ENABLE_PNP;/* Enable this card */ |
88 | static char *model[SNDRV_CARDS]; | 88 | static char *model[SNDRV_CARDS]; |
89 | static int omni[SNDRV_CARDS]; /* Delta44 & 66 Omni I/O support */ | 89 | static int omni[SNDRV_CARDS]; /* Delta44 & 66 Omni I/O support */ |
90 | static int cs8427_timeout[SNDRV_CARDS] = {[0 ... (SNDRV_CARDS-1)] = 500}; /* CS8427 S/PDIF transciever reset timeout value in msec */ | 90 | static int cs8427_timeout[SNDRV_CARDS] = {[0 ... (SNDRV_CARDS-1)] = 500}; /* CS8427 S/PDIF transceiver reset timeout value in msec */ |
91 | static int dxr_enable[SNDRV_CARDS]; /* DXR enable for DMX6FIRE */ | 91 | static int dxr_enable[SNDRV_CARDS]; /* DXR enable for DMX6FIRE */ |
92 | 92 | ||
93 | module_param_array(index, int, NULL, 0444); | 93 | module_param_array(index, int, NULL, 0444); |
diff --git a/sound/ppc/pmac.c b/sound/ppc/pmac.c index 3ecbd67f88c9..ab96cde7417b 100644 --- a/sound/ppc/pmac.c +++ b/sound/ppc/pmac.c | |||
@@ -881,8 +881,7 @@ static int snd_pmac_free(struct snd_pmac *chip) | |||
881 | for (i = 0; i < 3; i++) { | 881 | for (i = 0; i < 3; i++) { |
882 | if (chip->requested & (1 << i)) | 882 | if (chip->requested & (1 << i)) |
883 | release_mem_region(chip->rsrc[i].start, | 883 | release_mem_region(chip->rsrc[i].start, |
884 | chip->rsrc[i].end - | 884 | resource_size(&chip->rsrc[i])); |
885 | chip->rsrc[i].start + 1); | ||
886 | } | 885 | } |
887 | } | 886 | } |
888 | 887 | ||
@@ -1228,8 +1227,7 @@ int __devinit snd_pmac_new(struct snd_card *card, struct snd_pmac **chip_return) | |||
1228 | goto __error; | 1227 | goto __error; |
1229 | } | 1228 | } |
1230 | if (request_mem_region(chip->rsrc[i].start, | 1229 | if (request_mem_region(chip->rsrc[i].start, |
1231 | chip->rsrc[i].end - | 1230 | resource_size(&chip->rsrc[i]), |
1232 | chip->rsrc[i].start + 1, | ||
1233 | rnames[i]) == NULL) { | 1231 | rnames[i]) == NULL) { |
1234 | printk(KERN_ERR "snd: can't request rsrc " | 1232 | printk(KERN_ERR "snd: can't request rsrc " |
1235 | " %d (%s: %pR)\n", | 1233 | " %d (%s: %pR)\n", |
@@ -1254,8 +1252,7 @@ int __devinit snd_pmac_new(struct snd_card *card, struct snd_pmac **chip_return) | |||
1254 | goto __error; | 1252 | goto __error; |
1255 | } | 1253 | } |
1256 | if (request_mem_region(chip->rsrc[i].start, | 1254 | if (request_mem_region(chip->rsrc[i].start, |
1257 | chip->rsrc[i].end - | 1255 | resource_size(&chip->rsrc[i]), |
1258 | chip->rsrc[i].start + 1, | ||
1259 | rnames[i]) == NULL) { | 1256 | rnames[i]) == NULL) { |
1260 | printk(KERN_ERR "snd: can't request rsrc " | 1257 | printk(KERN_ERR "snd: can't request rsrc " |
1261 | " %d (%s: %pR)\n", | 1258 | " %d (%s: %pR)\n", |
diff --git a/sound/soc/ep93xx/ep93xx-i2s.c b/sound/soc/ep93xx/ep93xx-i2s.c index 30df42568dbb..56efa0c1c9a9 100644 --- a/sound/soc/ep93xx/ep93xx-i2s.c +++ b/sound/soc/ep93xx/ep93xx-i2s.c | |||
@@ -2,7 +2,7 @@ | |||
2 | * linux/sound/soc/ep93xx-i2s.c | 2 | * linux/sound/soc/ep93xx-i2s.c |
3 | * EP93xx I2S driver | 3 | * EP93xx I2S driver |
4 | * | 4 | * |
5 | * Copyright (C) 2010 Ryan Mallon <ryan@bluewatersys.com> | 5 | * Copyright (C) 2010 Ryan Mallon |
6 | * | 6 | * |
7 | * Based on the original driver by: | 7 | * Based on the original driver by: |
8 | * Copyright (C) 2007 Chase Douglas <chasedouglas@gmail> | 8 | * Copyright (C) 2007 Chase Douglas <chasedouglas@gmail> |
@@ -477,6 +477,6 @@ module_init(ep93xx_i2s_init); | |||
477 | module_exit(ep93xx_i2s_exit); | 477 | module_exit(ep93xx_i2s_exit); |
478 | 478 | ||
479 | MODULE_ALIAS("platform:ep93xx-i2s"); | 479 | MODULE_ALIAS("platform:ep93xx-i2s"); |
480 | MODULE_AUTHOR("Ryan Mallon <ryan@bluewatersys.com>"); | 480 | MODULE_AUTHOR("Ryan Mallon"); |
481 | MODULE_DESCRIPTION("EP93XX I2S driver"); | 481 | MODULE_DESCRIPTION("EP93XX I2S driver"); |
482 | MODULE_LICENSE("GPL"); | 482 | MODULE_LICENSE("GPL"); |
diff --git a/sound/soc/ep93xx/ep93xx-pcm.c b/sound/soc/ep93xx/ep93xx-pcm.c index dd7ac5374cef..8dfd3ad84b19 100644 --- a/sound/soc/ep93xx/ep93xx-pcm.c +++ b/sound/soc/ep93xx/ep93xx-pcm.c | |||
@@ -5,7 +5,7 @@ | |||
5 | * Copyright (C) 2006 Applied Data Systems | 5 | * Copyright (C) 2006 Applied Data Systems |
6 | * | 6 | * |
7 | * Rewritten for the SoC audio subsystem (Based on PXA2xx code): | 7 | * Rewritten for the SoC audio subsystem (Based on PXA2xx code): |
8 | * Copyright (c) 2008 Ryan Mallon <ryan@bluewatersys.com> | 8 | * Copyright (c) 2008 Ryan Mallon |
9 | * | 9 | * |
10 | * This program is free software; you can redistribute it and/or modify | 10 | * This program is free software; you can redistribute it and/or modify |
11 | * it under the terms of the GNU General Public License version 2 as | 11 | * it under the terms of the GNU General Public License version 2 as |
@@ -352,6 +352,6 @@ static void __exit ep93xx_soc_platform_exit(void) | |||
352 | module_init(ep93xx_soc_platform_init); | 352 | module_init(ep93xx_soc_platform_init); |
353 | module_exit(ep93xx_soc_platform_exit); | 353 | module_exit(ep93xx_soc_platform_exit); |
354 | 354 | ||
355 | MODULE_AUTHOR("Ryan Mallon <ryan@bluewatersys.com>"); | 355 | MODULE_AUTHOR("Ryan Mallon"); |
356 | MODULE_DESCRIPTION("EP93xx ALSA PCM interface"); | 356 | MODULE_DESCRIPTION("EP93xx ALSA PCM interface"); |
357 | MODULE_LICENSE("GPL"); | 357 | MODULE_LICENSE("GPL"); |
diff --git a/sound/soc/ep93xx/snappercl15.c b/sound/soc/ep93xx/snappercl15.c index dfe1d7f74ea6..c8aa8a5003ca 100644 --- a/sound/soc/ep93xx/snappercl15.c +++ b/sound/soc/ep93xx/snappercl15.c | |||
@@ -2,7 +2,7 @@ | |||
2 | * snappercl15.c -- SoC audio for Bluewater Systems Snapper CL15 module | 2 | * snappercl15.c -- SoC audio for Bluewater Systems Snapper CL15 module |
3 | * | 3 | * |
4 | * Copyright (C) 2008 Bluewater Systems Ltd | 4 | * Copyright (C) 2008 Bluewater Systems Ltd |
5 | * Author: Ryan Mallon <ryan@bluewatersys.com> | 5 | * Author: Ryan Mallon |
6 | * | 6 | * |
7 | * This program is free software; you can redistribute it and/or modify it | 7 | * This program is free software; you can redistribute it and/or modify it |
8 | * under the terms of the GNU General Public License as published by the | 8 | * under the terms of the GNU General Public License as published by the |
@@ -140,7 +140,7 @@ static void __exit snappercl15_exit(void) | |||
140 | module_init(snappercl15_init); | 140 | module_init(snappercl15_init); |
141 | module_exit(snappercl15_exit); | 141 | module_exit(snappercl15_exit); |
142 | 142 | ||
143 | MODULE_AUTHOR("Ryan Mallon <ryan@bluewatersys.com>"); | 143 | MODULE_AUTHOR("Ryan Mallon"); |
144 | MODULE_DESCRIPTION("ALSA SoC Snapper CL15"); | 144 | MODULE_DESCRIPTION("ALSA SoC Snapper CL15"); |
145 | MODULE_LICENSE("GPL"); | 145 | MODULE_LICENSE("GPL"); |
146 | 146 | ||
diff --git a/sound/soc/fsl/mpc5200_dma.c b/sound/soc/fsl/mpc5200_dma.c index 19ad0c1be67e..fd0dc46afc34 100644 --- a/sound/soc/fsl/mpc5200_dma.c +++ b/sound/soc/fsl/mpc5200_dma.c | |||
@@ -385,7 +385,7 @@ static int mpc5200_hpcd_probe(struct of_device *op) | |||
385 | dev_err(&op->dev, "Missing reg property\n"); | 385 | dev_err(&op->dev, "Missing reg property\n"); |
386 | return -ENODEV; | 386 | return -ENODEV; |
387 | } | 387 | } |
388 | regs = ioremap(res.start, 1 + res.end - res.start); | 388 | regs = ioremap(res.start, resource_size(&res)); |
389 | if (!regs) { | 389 | if (!regs) { |
390 | dev_err(&op->dev, "Could not map registers\n"); | 390 | dev_err(&op->dev, "Could not map registers\n"); |
391 | return -ENODEV; | 391 | return -ENODEV; |
diff --git a/sound/soc/omap/ams-delta.c b/sound/soc/omap/ams-delta.c index b40095a19883..30fe0d0efe1c 100644 --- a/sound/soc/omap/ams-delta.c +++ b/sound/soc/omap/ams-delta.c | |||
@@ -330,7 +330,7 @@ static int cx81801_hangup(struct tty_struct *tty) | |||
330 | return 0; | 330 | return 0; |
331 | } | 331 | } |
332 | 332 | ||
333 | /* Line discipline .recieve_buf() */ | 333 | /* Line discipline .receive_buf() */ |
334 | static void cx81801_receive(struct tty_struct *tty, | 334 | static void cx81801_receive(struct tty_struct *tty, |
335 | const unsigned char *cp, char *fp, int count) | 335 | const unsigned char *cp, char *fp, int count) |
336 | { | 336 | { |