summaryrefslogtreecommitdiffstats
path: root/include/linux/pci.h
diff options
context:
space:
mode:
authorYinghai Lu <yinghai@kernel.org>2012-01-04 15:49:45 -0800
committerJesse Barnes <jbarnes@virtuousgeek.org>2012-01-06 12:15:14 -0800
commitcda57bf9348fdbf4b8a830d6f9eb7da81df2f486 (patch)
tree428e754d5064cb4da55c6896a274f9c716d27af6 /include/linux/pci.h
parentaecab53f45b84fbc7d6848957f9d83e1c3548b17 (diff)
downloadop-kernel-dev-cda57bf9348fdbf4b8a830d6f9eb7da81df2f486.zip
op-kernel-dev-cda57bf9348fdbf4b8a830d6f9eb7da81df2f486.tar.gz
PCI: DEVICE_COUNT_RESOURCE should be equal to PCI_NUM_RESOURCES
Save some bytes for device resource array. Signed-off-by: Yinghai Lu <yinghai@kernel.org> Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Diffstat (limited to 'include/linux/pci.h')
-rw-r--r--include/linux/pci.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/pci.h b/include/linux/pci.h
index 174fe8a..5d06e34 100644
--- a/include/linux/pci.h
+++ b/include/linux/pci.h
@@ -111,7 +111,7 @@ enum {
PCI_NUM_RESOURCES,
/* preserve this for compatibility */
- DEVICE_COUNT_RESOURCE
+ DEVICE_COUNT_RESOURCE = PCI_NUM_RESOURCES,
};
typedef int __bitwise pci_power_t;
OpenPOWER on IntegriCloud