Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 260698
b: refs/heads/master
c: 1b7c472
h: refs/heads/master
v: v3
  • Loading branch information
Peter Ujfalusi committed Jul 7, 2011
1 parent 8c33173 commit b4384bd
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 28 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: d20e1d21fd0c398a8beb170beacf8e2ca839844c
refs/heads/master: 1b7c4725e2e926eaeb8657ac22992ec27fe03135
10 changes: 5 additions & 5 deletions trunk/drivers/mfd/twl6040-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -502,9 +502,9 @@ static int __devinit twl6040_probe(struct platform_device *pdev)
if (ret)
goto gpio2_err;

ret = twl6040_request_irq(twl6040, TWL6040_IRQ_READY,
twl6040_naudint_handler, 0,
"twl6040_irq_ready", twl6040);
ret = request_threaded_irq(twl6040->irq_base + TWL6040_IRQ_READY,
NULL, twl6040_naudint_handler, 0,
"twl6040_irq_ready", twl6040);
if (ret) {
dev_err(twl6040->dev, "READY IRQ request failed: %d\n",
ret);
Expand Down Expand Up @@ -557,7 +557,7 @@ static int __devinit twl6040_probe(struct platform_device *pdev)
return 0;

mfd_err:
twl6040_free_irq(twl6040, TWL6040_IRQ_READY, twl6040);
free_irq(twl6040->irq_base + TWL6040_IRQ_READY, twl6040);
irq_err:
twl6040_irq_exit(twl6040);
gpio2_err:
Expand All @@ -580,7 +580,7 @@ static int __devexit twl6040_remove(struct platform_device *pdev)
if (gpio_is_valid(twl6040->audpwron))
gpio_free(twl6040->audpwron);

twl6040_free_irq(twl6040, TWL6040_IRQ_READY, twl6040);
free_irq(twl6040->irq_base + TWL6040_IRQ_READY, twl6040);
twl6040_irq_exit(twl6040);

mfd_remove_devices(&pdev->dev);
Expand Down
22 changes: 0 additions & 22 deletions trunk/include/linux/mfd/twl6040.h
Original file line number Diff line number Diff line change
Expand Up @@ -215,28 +215,6 @@ struct twl6040 {
u8 irq_masks_cache;
};

static inline int twl6040_request_irq(struct twl6040 *twl6040, int irq,
irq_handler_t handler,
unsigned long irqflags,
const char *name,
void *data)
{
if (!twl6040->irq_base)
return -EINVAL;

return request_threaded_irq(twl6040->irq_base + irq, NULL, handler,
irqflags, name, data);
}

static inline void twl6040_free_irq(struct twl6040 *twl6040, int irq,
void *data)
{
if (!twl6040->irq_base)
return;

free_irq(twl6040->irq_base + irq, data);
}

int twl6040_reg_read(struct twl6040 *twl6040, unsigned int reg);
int twl6040_reg_write(struct twl6040 *twl6040, unsigned int reg,
u8 val);
Expand Down

0 comments on commit b4384bd

Please sign in to comment.