diff options
author | Peter Ujfalusi <peter.ujfalusi@ti.com> | 2011-07-04 20:16:23 +0300 |
---|---|---|
committer | Peter Ujfalusi <peter.ujfalusi@ti.com> | 2011-07-07 14:23:35 +0300 |
commit | 1b7c4725e2e926eaeb8657ac22992ec27fe03135 (patch) | |
tree | b435e06d240ecccbd9d9cdb64f5a914b87b05b06 /include/linux/mfd/twl6040.h | |
parent | d20e1d21fd0c398a8beb170beacf8e2ca839844c (diff) | |
download | talos-obmc-linux-1b7c4725e2e926eaeb8657ac22992ec27fe03135.tar.gz talos-obmc-linux-1b7c4725e2e926eaeb8657ac22992ec27fe03135.zip |
MFD: twl6040: Remove wrapper for threaded irq request
Remove the twl6040_request_irq/free_irq inline functions,
and use direct calls instead in the core driver to
register the threaded irq.
Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
Reviewed-by: Felipe Balbi <balbi@ti.com>
Acked-by: Samuel Ortiz <sameo@linux.intel.com>
Diffstat (limited to 'include/linux/mfd/twl6040.h')
-rw-r--r-- | include/linux/mfd/twl6040.h | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/include/linux/mfd/twl6040.h b/include/linux/mfd/twl6040.h index c3c1de53dcfe..df890a247c36 100644 --- a/include/linux/mfd/twl6040.h +++ b/include/linux/mfd/twl6040.h @@ -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); |