diff options
Diffstat (limited to 'drivers/bcma/main.c')
-rw-r--r-- | drivers/bcma/main.c | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/drivers/bcma/main.c b/drivers/bcma/main.c index 7e138ec21357..7ff4bac6f9e1 100644 --- a/drivers/bcma/main.c +++ b/drivers/bcma/main.c | |||
@@ -118,8 +118,9 @@ static int bcma_register_cores(struct bcma_bus *bus) | |||
118 | 118 | ||
119 | err = device_register(&core->dev); | 119 | err = device_register(&core->dev); |
120 | if (err) { | 120 | if (err) { |
121 | pr_err("Could not register dev for core 0x%03X\n", | 121 | bcma_err(bus, |
122 | core->id.id); | 122 | "Could not register dev for core 0x%03X\n", |
123 | core->id.id); | ||
123 | continue; | 124 | continue; |
124 | } | 125 | } |
125 | core->dev_registered = true; | 126 | core->dev_registered = true; |
@@ -151,7 +152,7 @@ int __devinit bcma_bus_register(struct bcma_bus *bus) | |||
151 | /* Scan for devices (cores) */ | 152 | /* Scan for devices (cores) */ |
152 | err = bcma_bus_scan(bus); | 153 | err = bcma_bus_scan(bus); |
153 | if (err) { | 154 | if (err) { |
154 | pr_err("Failed to scan: %d\n", err); | 155 | bcma_err(bus, "Failed to scan: %d\n", err); |
155 | return -1; | 156 | return -1; |
156 | } | 157 | } |
157 | 158 | ||
@@ -179,14 +180,14 @@ int __devinit bcma_bus_register(struct bcma_bus *bus) | |||
179 | /* Try to get SPROM */ | 180 | /* Try to get SPROM */ |
180 | err = bcma_sprom_get(bus); | 181 | err = bcma_sprom_get(bus); |
181 | if (err == -ENOENT) { | 182 | if (err == -ENOENT) { |
182 | pr_err("No SPROM available\n"); | 183 | bcma_err(bus, "No SPROM available\n"); |
183 | } else if (err) | 184 | } else if (err) |
184 | pr_err("Failed to get SPROM: %d\n", err); | 185 | bcma_err(bus, "Failed to get SPROM: %d\n", err); |
185 | 186 | ||
186 | /* Register found cores */ | 187 | /* Register found cores */ |
187 | bcma_register_cores(bus); | 188 | bcma_register_cores(bus); |
188 | 189 | ||
189 | pr_info("Bus registered\n"); | 190 | bcma_info(bus, "Bus registered\n"); |
190 | 191 | ||
191 | return 0; | 192 | return 0; |
192 | } | 193 | } |
@@ -214,7 +215,7 @@ int __init bcma_bus_early_register(struct bcma_bus *bus, | |||
214 | /* Scan for chip common core */ | 215 | /* Scan for chip common core */ |
215 | err = bcma_bus_scan_early(bus, &match, core_cc); | 216 | err = bcma_bus_scan_early(bus, &match, core_cc); |
216 | if (err) { | 217 | if (err) { |
217 | pr_err("Failed to scan for common core: %d\n", err); | 218 | bcma_err(bus, "Failed to scan for common core: %d\n", err); |
218 | return -1; | 219 | return -1; |
219 | } | 220 | } |
220 | 221 | ||
@@ -226,7 +227,7 @@ int __init bcma_bus_early_register(struct bcma_bus *bus, | |||
226 | /* Scan for mips core */ | 227 | /* Scan for mips core */ |
227 | err = bcma_bus_scan_early(bus, &match, core_mips); | 228 | err = bcma_bus_scan_early(bus, &match, core_mips); |
228 | if (err) { | 229 | if (err) { |
229 | pr_err("Failed to scan for mips core: %d\n", err); | 230 | bcma_err(bus, "Failed to scan for mips core: %d\n", err); |
230 | return -1; | 231 | return -1; |
231 | } | 232 | } |
232 | 233 | ||
@@ -244,7 +245,7 @@ int __init bcma_bus_early_register(struct bcma_bus *bus, | |||
244 | bcma_core_mips_init(&bus->drv_mips); | 245 | bcma_core_mips_init(&bus->drv_mips); |
245 | } | 246 | } |
246 | 247 | ||
247 | pr_info("Early bus registered\n"); | 248 | bcma_info(bus, "Early bus registered\n"); |
248 | 249 | ||
249 | return 0; | 250 | return 0; |
250 | } | 251 | } |