diff options
Diffstat (limited to 'arch/mips/pci/ops-pnx8550.c')
| -rw-r--r-- | arch/mips/pci/ops-pnx8550.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/arch/mips/pci/ops-pnx8550.c b/arch/mips/pci/ops-pnx8550.c index f556b7a8dccd..d61064652498 100644 --- a/arch/mips/pci/ops-pnx8550.c +++ b/arch/mips/pci/ops-pnx8550.c | |||
| @@ -117,7 +117,7 @@ read_config_byte(struct pci_bus *bus, unsigned int devfn, int where, u8 * val) | |||
| 117 | unsigned int data = 0; | 117 | unsigned int data = 0; |
| 118 | int err; | 118 | int err; |
| 119 | 119 | ||
| 120 | if (bus == 0) | 120 | if (bus == NULL) |
| 121 | return -1; | 121 | return -1; |
| 122 | 122 | ||
| 123 | err = config_access(PCI_CMD_CONFIG_READ, bus, devfn, where, ~(1 << (where & 3)), &data); | 123 | err = config_access(PCI_CMD_CONFIG_READ, bus, devfn, where, ~(1 << (where & 3)), &data); |
| @@ -145,7 +145,7 @@ read_config_word(struct pci_bus *bus, unsigned int devfn, int where, u16 * val) | |||
| 145 | unsigned int data = 0; | 145 | unsigned int data = 0; |
| 146 | int err; | 146 | int err; |
| 147 | 147 | ||
| 148 | if (bus == 0) | 148 | if (bus == NULL) |
| 149 | return -1; | 149 | return -1; |
| 150 | 150 | ||
| 151 | if (where & 0x01) | 151 | if (where & 0x01) |
| @@ -168,7 +168,7 @@ static int | |||
| 168 | read_config_dword(struct pci_bus *bus, unsigned int devfn, int where, u32 * val) | 168 | read_config_dword(struct pci_bus *bus, unsigned int devfn, int where, u32 * val) |
| 169 | { | 169 | { |
| 170 | int err; | 170 | int err; |
| 171 | if (bus == 0) | 171 | if (bus == NULL) |
| 172 | return -1; | 172 | return -1; |
| 173 | 173 | ||
| 174 | if (where & 0x03) | 174 | if (where & 0x03) |
| @@ -185,7 +185,7 @@ write_config_byte(struct pci_bus *bus, unsigned int devfn, int where, u8 val) | |||
| 185 | unsigned int data = (unsigned int)val; | 185 | unsigned int data = (unsigned int)val; |
| 186 | int err; | 186 | int err; |
| 187 | 187 | ||
| 188 | if (bus == 0) | 188 | if (bus == NULL) |
| 189 | return -1; | 189 | return -1; |
| 190 | 190 | ||
| 191 | switch (where & 0x03) { | 191 | switch (where & 0x03) { |
| @@ -213,7 +213,7 @@ write_config_word(struct pci_bus *bus, unsigned int devfn, int where, u16 val) | |||
| 213 | unsigned int data = (unsigned int)val; | 213 | unsigned int data = (unsigned int)val; |
| 214 | int err; | 214 | int err; |
| 215 | 215 | ||
| 216 | if (bus == 0) | 216 | if (bus == NULL) |
| 217 | return -1; | 217 | return -1; |
| 218 | 218 | ||
| 219 | if (where & 0x01) | 219 | if (where & 0x01) |
| @@ -235,7 +235,7 @@ static int | |||
| 235 | write_config_dword(struct pci_bus *bus, unsigned int devfn, int where, u32 val) | 235 | write_config_dword(struct pci_bus *bus, unsigned int devfn, int where, u32 val) |
| 236 | { | 236 | { |
| 237 | int err; | 237 | int err; |
| 238 | if (bus == 0) | 238 | if (bus == NULL) |
| 239 | return -1; | 239 | return -1; |
| 240 | 240 | ||
| 241 | if (where & 0x03) | 241 | if (where & 0x03) |
