]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
PCI: dwc: dra7xx: Push request_irq() call to the bottom of probe
authorKeerthy <j-keerthy@ti.com>
Mon, 13 Mar 2017 13:43:28 +0000 (19:13 +0530)
committerBjorn Helgaas <bhelgaas@google.com>
Tue, 4 Apr 2017 13:41:30 +0000 (08:41 -0500)
commitd4c7d1a089d6fddf38c4fcdc91f15791bfb59a95
treebb0ddc5219f278d224edceaeb8432fda8c839984
parentedd45e3968299f9b4635bdfeca1edab842d81eac
PCI: dwc: dra7xx: Push request_irq() call to the bottom of probe

Currently devm_request_irq() is being called before base, PCI fields of
dra7xx_pcie structure are populated. It is called even before
pm_runtime_enable() and pm_runtime_get_sync() are called. This will lead
to exceptions if in case an interrupt is triggered before the all of the
above are done. Hence push the devm_request_irq() call to the end of the
probe.

Signed-off-by: Keerthy <j-keerthy@ti.com>
Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
drivers/pci/dwc/pci-dra7xx.c