Skip to contentSkip to conversation

dma: ipu: Drop unused spinlock

PATCH In review Jean Delvare 2 participants 3 messages Sep 6, 2012 – Dec 16, 2012 dmaengine

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 dma: ipu: Drop unused spinlock

I was checking why this spinlock was never initialized, but it turns out it's not used anywhere, so we can drop it.

Cc Vinod Koul <[email protected]>
Cc Dan Williams <[email protected]>

---
I can't even build-test this.

 drivers/dma/ipu/ipu_irq.c |    1 -
 1 file changed, 1 deletion(-)
drivers/dma/ipu/ipu_irq.c +0 -1
@@ -45,7 +45,6 @@ static void ipu_write_reg(struct ipu *ip
 struct ipu_irq_bank {
 	unsigned int	control;
 	unsigned int	status;
-	spinlock_t	lock;
 	struct ipu	*ipu;
 };
 
Signature · 1 line
Jean Delvare
#1 lore raw
Quoted 15 lines · Jean Delvare

I was checking why this spinlock was never initialized, but it turns out it's not used anywhere, so we can drop it.

Cc Vinod Koul <[email protected]>
Cc Dan Williams <[email protected]>

---
I can't even build-test this.

 drivers/dma/ipu/ipu_irq.c |    1 -
 1 file changed, 1 deletion(-)

drivers/dma/ipu/ipu_irq.c static void ipu_write_reg(struct ipu *ip · line 50

Quoted 7 lines
drivers/dma/ipu/ipu_irq.c +0 -1
@@ -45,7 +45,6 @@ static void ipu_write_reg(struct ipu *ip
 struct ipu_irq_bank {
 	unsigned int	control;
 	unsigned int	status;
-	spinlock_t	lock;
 	struct ipu	*ipu;
 };
 

Dan, you okay with this?

Signature · 1 line
~Vinod
#2 lore raw
Quoted 13 lines · Vinod Koul
Quoted 12 lines · Jean Delvare

I was checking why this spinlock was never initialized, but it turns out it's not used anywhere, so we can drop it.

Cc Vinod Koul <[email protected]>
Cc Dan Williams <[email protected]>

---
I can't even build-test this.

 drivers/dma/ipu/ipu_irq.c |    1 -
 1 file changed, 1 deletion(-)
Quoted 11 lines

drivers/dma/ipu/ipu_irq.c static void ipu_write_reg(struct ipu *ip · line 49

Quoted 9 lines
drivers/dma/ipu/ipu_irq.c +0 -1
@@ -45,7 +45,6 @@ static void ipu_write_reg(struct ipu *ip
 struct ipu_irq_bank {
 	unsigned int	control;
 	unsigned int	status;
-	spinlock_t	lock;
 	struct ipu	*ipu;
 };

Dan, you okay with this?

What happened to this patch? Dan, please?

Signature · 1 line
Jean Delvare