]> git.baikalelectronics.ru Git - kernel.git/commit
PCI/portdrv: Don't create hotplug slots unless port supports hotplug
authorTaku Izumi <izumi.taku@jp.fujitsu.com>
Wed, 31 Oct 2012 00:51:48 +0000 (09:51 +0900)
committerBjorn Helgaas <bhelgaas@google.com>
Mon, 5 Nov 2012 23:59:59 +0000 (16:59 -0700)
commit01d961925b483d66f460943e5ae9751c897e9d8d
treee502e5301a0fe7475696851c435c2b887285169c
parent8add4806fb2fbabdb9d80e9f7c21d433555dbed5
PCI/portdrv: Don't create hotplug slots unless port supports hotplug

Commit 70acb287 mistakenly dropped the "flags & PCI_EXP_FLAGS_SLOT" test,
so now we create hotplug slots even for PCIe port devices that don't
support hotplug.  This patch fixes this problem.

[bhelgaas: changelog]
Signed-off-by: Taku Izumi <izumi.taku@jp.fujitsu.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Acked-by: Yinghai Lu <yinghai@kernel.org>
Reviewed-by: Jiang Liu <jiang.liu@huawei.com>
drivers/pci/pcie/portdrv_core.c