Skip to content

Commit 6bf2708

Browse files
andy-shevlinusw
authored andcommitted
pinctrl: aw9523: Remove unused irqchip field in struct aw9523_irq
The irqchip field is allocated, assigned but never used. Remove it. Signed-off-by: Andy Shevchenko <[email protected]> Message-ID: <[email protected]> Signed-off-by: Linus Walleij <[email protected]>
1 parent 4210ef8 commit 6bf2708

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

drivers/pinctrl/pinctrl-aw9523.c

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -57,12 +57,10 @@
5757
/*
5858
* struct aw9523_irq - Interrupt controller structure
5959
* @lock: mutex locking for the irq bus
60-
* @irqchip: structure holding irqchip params
6160
* @cached_gpio: stores the previous gpio status for bit comparison
6261
*/
6362
struct aw9523_irq {
6463
struct mutex lock;
65-
struct irq_chip *irqchip;
6664
u16 cached_gpio;
6765
};
6866

@@ -805,21 +803,15 @@ static int aw9523_init_irq(struct aw9523 *awi, int irq)
805803
{
806804
struct device *dev = awi->dev;
807805
struct gpio_irq_chip *girq;
808-
struct irq_chip *irqchip;
809806
int ret;
810807

811808
if (!device_property_read_bool(dev, "interrupt-controller"))
812809
return 0;
813810

814-
irqchip = devm_kzalloc(dev, sizeof(*irqchip), GFP_KERNEL);
815-
if (!irqchip)
816-
return -ENOMEM;
817-
818811
awi->irq = devm_kzalloc(dev, sizeof(*awi->irq), GFP_KERNEL);
819812
if (!awi->irq)
820813
return -ENOMEM;
821814

822-
awi->irq->irqchip = irqchip;
823815
mutex_init(&awi->irq->lock);
824816

825817
ret = devm_request_threaded_irq(dev, irq, NULL, aw9523_irq_thread_func,

0 commit comments

Comments
 (0)