Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 26884
b: refs/heads/master
c: b307e85
h: refs/heads/master
v: v3
  • Loading branch information
Andrew Morton authored and Linus Torvalds committed May 21, 2006
1 parent 56b01e2 commit 3dd73a0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: db31419404e5ccc7e8e07000a5f1ac440a0eafa0
refs/heads/master: b307e8548921c686d2eb948ca418ab2941876daa
10 changes: 6 additions & 4 deletions trunk/sound/oss/ad1848.c
Original file line number Diff line number Diff line change
Expand Up @@ -2026,7 +2026,8 @@ int ad1848_init (char *name, struct resource *ports, int irq, int dma_playback,
if (irq > 0)
{
devc->dev_no = my_dev;
if (request_irq(devc->irq, adintr, 0, devc->name, (void *)my_dev) < 0)
if (request_irq(devc->irq, adintr, 0, devc->name,
(void *)(long)my_dev) < 0)
{
printk(KERN_WARNING "ad1848: Unable to allocate IRQ\n");
/* Don't free it either then.. */
Expand Down Expand Up @@ -2175,7 +2176,7 @@ void ad1848_unload(int io_base, int irq, int dma_playback, int dma_capture, int
if (!share_dma)
{
if (devc->irq > 0) /* There is no point in freeing irq, if it wasn't allocated */
free_irq(devc->irq, (void *)devc->dev_no);
free_irq(devc->irq, (void *)(long)devc->dev_no);

sound_free_dma(dma_playback);

Expand Down Expand Up @@ -2204,7 +2205,7 @@ irqreturn_t adintr(int irq, void *dev_id, struct pt_regs *dummy)
unsigned char c930_stat = 0;
int cnt = 0;

dev = (int)dev_id;
dev = (long)dev_id;
devc = (ad1848_info *) audio_devs[dev]->devc;

interrupt_again: /* Jump back here if int status doesn't reset */
Expand Down Expand Up @@ -2900,7 +2901,8 @@ static struct pnp_dev *activate_dev(char *devname, char *resname, struct pnp_dev
return(dev);
}

static struct pnp_dev *ad1848_init_generic(struct pnp_card *bus, struct address_info *hw_config, int slot)
static struct pnp_dev __init *ad1848_init_generic(struct pnp_card *bus,
struct address_info *hw_config, int slot)
{

/* Configure Audio device */
Expand Down

0 comments on commit 3dd73a0

Please sign in to comment.