From: Greg Kroah-Hartman Date: Thu, 19 Dec 2013 20:30:17 +0000 (-0800) Subject: PCI/MSI: Export MSI mode using attributes, not kobjects X-Git-Tag: v3.14-rc1~132^2~13^2~5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1c51b50c2995f543d145d3bce78029ac9f8ca6b3;p=pandora-kernel.git PCI/MSI: Export MSI mode using attributes, not kobjects The PCI MSI sysfs code is a mess with kobjects for things that don't really need to be kobjects. This patch creates attributes dynamically for the MSI interrupts instead of using kobjects. Note, this removes a directory from sysfs. Old MSI kobjects: pci_device └── msi_irqs    └── 40    └── mode New MSI attributes: pci_device └── msi_irqs    └── 40 As there was only one file "mode" with the kobject model, the interrupt number is now a file that returns the "mode" of the interrupt (msi vs. msix). Signed-off-by: Greg Kroah-Hartman Signed-off-by: Bjorn Helgaas Acked-by: Neil Horman --- Reading git-diff-tree failed