From: Sebastian Andrzej Siewior Date: Fri, 4 May 2018 14:24:43 +0000 (+0200) Subject: alim15x3: move irq-restore before pci_dev_put() X-Git-Tag: v4.18-rc1~82^2~3 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=820ec411e67c8dab645fb7e180875d619b6ab7e7;p=thirdparty%2Flinux.git alim15x3: move irq-restore before pci_dev_put() init_chipset_ali15x3() initializes the chipset during init with disabled interrupts. There is no need to keep the interrupts disabled during pci_dev_put(). Move the irq-restore before pci_dev_put() is invoked. Side note: The same init is performed in drivers/ata/pata_ali.c::ali_init_chipset() without disabled interrupts. It looks that the same hardware is supported in the ATA land. Would it make sense to remove this driver since it is supported in the other subsystem? Signed-off-by: Sebastian Andrzej Siewior Acked-by: David S. Miller Signed-off-by: David S. Miller --- diff --git a/drivers/ide/alim15x3.c b/drivers/ide/alim15x3.c index 36f76e28a0bfa..3265970aee34f 100644 --- a/drivers/ide/alim15x3.c +++ b/drivers/ide/alim15x3.c @@ -323,9 +323,9 @@ out: pci_write_config_byte(dev, 0x53, tmpbyte); } + local_irq_restore(flags); pci_dev_put(north); pci_dev_put(isa_dev); - local_irq_restore(flags); return 0; }