]> git.baikalelectronics.ru Git - kernel.git/commit
pci: Set dev->dev.type in alloc_pci_dev
authorBrian King <brking@linux.vnet.ibm.com>
Mon, 8 Apr 2013 03:05:07 +0000 (03:05 +0000)
committerMichael Ellerman <michael@ellerman.id.au>
Thu, 18 Apr 2013 05:59:57 +0000 (15:59 +1000)
commite6156b152ec793dd0b0261133a442fd965517fc4
tree1d77e15a878d12838a97d021720cc6bfb923914a
parente03592f3a8e3f017ff227b66450c06665aae1b9e
pci: Set dev->dev.type in alloc_pci_dev

Set dev->dev.type in alloc_pci_dev so that archs that have their own
versions of pci_setup_device get this set properly in order to ensure
things like the boot_vga sysfs parameter get created as expected.

Signed-off-by: Brian King <brking@linux.vnet.ibm.com>
Acked-by: Bjorn Helgaas <bhelgaas@google.com>
Signed-off-by: Michael Ellerman <michael@ellerman.id.au>
drivers/pci/probe.c