PCI: Add pci_device_type to pdev's device struct
authorYinghai Lu <yinghai@kernel.org>
Mon, 5 Nov 2012 20:20:34 +0000 (15:20 -0500)
committerBjorn Helgaas <bhelgaas@google.com>
Sat, 10 Nov 2012 03:07:31 +0000 (20:07 -0700)
commit4e15c46bdc4d5ea0e7991a05edbd807328d38a2c
treed1206db8fa4a47ecbddb264bd71b2c700e0a8a44
parent8f0d8163b50e01f398b14bcd4dc039ac5ab18d64
PCI: Add pci_device_type to pdev's device struct

Need type filled in device structure so it can be used for visible
attribute control in sysfs for pci_dev.

Signed-off-by: Yinghai Lu <yinghai@kernel.org>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
drivers/pci/pci-sysfs.c
drivers/pci/pci.h
drivers/pci/probe.c