Skip to content

Commit cda57bf

Browse files
Yinghai Lujbarnes993
authored andcommitted
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>
1 parent aecab53 commit cda57bf

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎include/linux/pci.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ enum {
111111
PCI_NUM_RESOURCES,
112112

113113
/* preserve this for compatibility */
114-
DEVICE_COUNT_RESOURCE
114+
DEVICE_COUNT_RESOURCE = PCI_NUM_RESOURCES,
115115
};
116116

117117
typedef int __bitwise pci_power_t;

0 commit comments

Comments
 (0)