diff options
author | Kulikov Vasiliy <segooon@gmail.com> | 2010-08-03 17:42:34 +0200 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2010-08-05 04:28:25 +0200 |
commit | 96576a9e1a0cdb8a43d3af5846be0948f52b4460 (patch) | |
tree | 2a1a58c5862b3c790b36ce44867c9f5d1f758352 /drivers/net/sunhme.c | |
parent | agp: efficeon-agp: do not use PCI resources before pci_enable_device() (diff) | |
download | linux-96576a9e1a0cdb8a43d3af5846be0948f52b4460.tar.xz linux-96576a9e1a0cdb8a43d3af5846be0948f52b4460.zip |
agp: intel-agp: 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>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/net/sunhme.c')
0 files changed, 0 insertions, 0 deletions