]> git.baikalelectronics.ru Git - kernel.git/commit
x86: intel_ips: do not use PCI resources before pci_enable_device()
authorKulikov Vasiliy <segooon@gmail.com>
Tue, 3 Aug 2010 15:44:16 +0000 (19:44 +0400)
committerMatthew Garrett <mjg@redhat.com>
Mon, 16 Aug 2010 15:53:44 +0000 (11:53 -0400)
commitb35f239270a02aa3dec19df6d70cdfbc2dafca0f
tree7d89214f205ce5a98bca13a018f42eb308e4e345
parentd1a5ef25f4f4034bef7991998f8f95568eb6224a
x86: intel_ips: do not use PCI resources before pci_enable_device()

IRQ and resource[] may not have correct values until
after PCI hotplug setup occurs at pci_enable_device() time.

The semantic match that finds this problem is as follows:

// <smpl>
@@
identifier x;
identifier request ~= "pci_request.*|pci_resource.*";
@@

(
* x->irq
|
* x->resource
|
* request(x, ...)
)
 ...
*pci_enable_device(x)
// </smpl>

Signed-off-by: Kulikov Vasiliy <segooon@gmail.com>
Reviewed-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Signed-off-by: Matthew Garrett <mjg@redhat.com>
drivers/platform/x86/intel_ips.c