aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorJiang Liu <jiang.liu@linux.intel.com>2015-07-13 16:39:54 -0400
committerVinod Koul <vinod.koul@intel.com>2015-07-16 09:11:18 -0400
commit4d9efdfce73c8f0c9e39d118833e4776719a8d40 (patch)
treef6d112d67de15c836caede8190ce3b58d4d09e52 /drivers
parentd7fdb356902a13bb92229722d88a836523a3c6e3 (diff)
dmaengine: ipu: Use irq_desc_get_xxx() to avoid redundant lookup of irq_desc
Use irq_desc_get_xxx() to avoid redundant lookup of irq_desc while we already have a pointer to corresponding irq_desc. This is also a preparation for the removal of the 'irq' argument from interrupt flow handlers. Signed-off-by: Jiang Liu <jiang.liu@linux.intel.com> Cc: Dan Williams <dan.j.williams@intel.com> Cc: Vinod Koul <vinod.koul@intel.com> Cc: dmaengine@vger.kernel.org Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/dma/ipu/ipu_irq.c2
-rw-r--r--drivers/gpu/ipu-v3/ipu-common.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/drivers/dma/ipu/ipu_irq.c b/drivers/dma/ipu/ipu_irq.c
index 8d36f07b5801..4357063980e1 100644
--- a/drivers/dma/ipu/ipu_irq.c
+++ b/drivers/dma/ipu/ipu_irq.c
@@ -268,7 +268,7 @@ int ipu_irq_unmap(unsigned int source)
268/* Chained IRQ handler for IPU error interrupt */ 268/* Chained IRQ handler for IPU error interrupt */
269static void ipu_irq_err(unsigned int irq, struct irq_desc *desc) 269static void ipu_irq_err(unsigned int irq, struct irq_desc *desc)
270{ 270{
271 struct ipu *ipu = irq_get_handler_data(irq); 271 struct ipu *ipu = irq_desc_get_handler_data(desc);
272 u32 status; 272 u32 status;
273 int i, line; 273 int i, line;
274 274
diff --git a/drivers/gpu/ipu-v3/ipu-common.c b/drivers/gpu/ipu-v3/ipu-common.c
index 6d2f39d36e44..552178799062 100644
--- a/drivers/gpu/ipu-v3/ipu-common.c
+++ b/drivers/gpu/ipu-v3/ipu-common.c
@@ -915,8 +915,8 @@ static void ipu_irq_handle(struct ipu_soc *ipu, const int *regs, int num_regs)
915static void ipu_irq_handler(unsigned int irq, struct irq_desc *desc) 915static void ipu_irq_handler(unsigned int irq, struct irq_desc *desc)
916{ 916{
917 struct ipu_soc *ipu = irq_desc_get_handler_data(desc); 917 struct ipu_soc *ipu = irq_desc_get_handler_data(desc);
918 struct irq_chip *chip = irq_desc_get_chip(desc);
918 const int int_reg[] = { 0, 1, 2, 3, 10, 11, 12, 13, 14}; 919 const int int_reg[] = { 0, 1, 2, 3, 10, 11, 12, 13, 14};
919 struct irq_chip *chip = irq_get_chip(irq);
920 920
921 chained_irq_enter(chip, desc); 921 chained_irq_enter(chip, desc);
922 922
@@ -928,8 +928,8 @@ static void ipu_irq_handler(unsigned int irq, struct irq_desc *desc)
928static void ipu_err_irq_handler(unsigned int irq, struct irq_desc *desc) 928static void ipu_err_irq_handler(unsigned int irq, struct irq_desc *desc)
929{ 929{
930 struct ipu_soc *ipu = irq_desc_get_handler_data(desc); 930 struct ipu_soc *ipu = irq_desc_get_handler_data(desc);
931 struct irq_chip *chip = irq_desc_get_chip(desc);
931 const int int_reg[] = { 4, 5, 8, 9}; 932 const int int_reg[] = { 4, 5, 8, 9};
932 struct irq_chip *chip = irq_get_chip(irq);
933 933
934 chained_irq_enter(chip, desc); 934 chained_irq_enter(chip, desc);
935 935