diff options
Diffstat (limited to 'arch/x86/include/asm/k8.h')
-rw-r--r-- | arch/x86/include/asm/k8.h | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/arch/x86/include/asm/k8.h b/arch/x86/include/asm/k8.h index c23b3d171be5..c2d1f3b58e5f 100644 --- a/arch/x86/include/asm/k8.h +++ b/arch/x86/include/asm/k8.h | |||
@@ -13,10 +13,15 @@ extern void k8_flush_garts(void); | |||
13 | extern int k8_scan_nodes(unsigned long start, unsigned long end); | 13 | extern int k8_scan_nodes(unsigned long start, unsigned long end); |
14 | 14 | ||
15 | #ifdef CONFIG_K8_NB | 15 | #ifdef CONFIG_K8_NB |
16 | #define node_to_k8_nb_misc(node) \ | 16 | static inline struct pci_dev *node_to_k8_nb_misc(int node) |
17 | (node < num_k8_northbridges) ? k8_northbridges[node] : NULL | 17 | { |
18 | return (node < num_k8_northbridges) ? k8_northbridges[node] : NULL; | ||
19 | } | ||
18 | #else | 20 | #else |
19 | #define node_to_k8_nb_misc(node) NULL | 21 | static inline struct pci_dev *node_to_k8_nb_misc(int node) |
22 | { | ||
23 | return NULL; | ||
24 | } | ||
20 | #endif | 25 | #endif |
21 | 26 | ||
22 | 27 | ||