diff options
Diffstat (limited to 'arch/sh/drivers/pci/pci-st40.c')
-rw-r--r-- | arch/sh/drivers/pci/pci-st40.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/sh/drivers/pci/pci-st40.c b/arch/sh/drivers/pci/pci-st40.c index 1502a14386b6..0814a5afe9b7 100644 --- a/arch/sh/drivers/pci/pci-st40.c +++ b/arch/sh/drivers/pci/pci-st40.c | |||
@@ -114,7 +114,7 @@ static struct pci_err int_error[]={ | |||
114 | { INT_MWPDI, "MWPDI: PERR from target at data write"}, | 114 | { INT_MWPDI, "MWPDI: PERR from target at data write"}, |
115 | { INT_MRDPEI, "MRDPEI: Master read data parity error"} | 115 | { INT_MRDPEI, "MRDPEI: Master read data parity error"} |
116 | }; | 116 | }; |
117 | #define NUM_PCI_INT_ERRS (sizeof(int_error)/sizeof(struct pci_err)) | 117 | #define NUM_PCI_INT_ERRS ARRAY_SIZE(int_error) |
118 | 118 | ||
119 | static struct pci_err aint_error[]={ | 119 | static struct pci_err aint_error[]={ |
120 | { AINT_MBI, "MBI: Master broken"}, | 120 | { AINT_MBI, "MBI: Master broken"}, |
@@ -126,7 +126,7 @@ static struct pci_err aint_error[]={ | |||
126 | { AINT_WDPE, "WDPE: Write data parity"} | 126 | { AINT_WDPE, "WDPE: Write data parity"} |
127 | }; | 127 | }; |
128 | 128 | ||
129 | #define NUM_PCI_AINT_ERRS (sizeof(aint_error)/sizeof(struct pci_err)) | 129 | #define NUM_PCI_AINT_ERRS ARRAY_SIZE(aint_error) |
130 | 130 | ||
131 | static void print_pci_errors(unsigned reg,struct pci_err *error,int num_errors) | 131 | static void print_pci_errors(unsigned reg,struct pci_err *error,int num_errors) |
132 | { | 132 | { |