aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/bcma/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/bcma/main.c')
-rw-r--r--drivers/bcma/main.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/bcma/main.c b/drivers/bcma/main.c
index 6eda7ef0682f..9a6188add590 100644
--- a/drivers/bcma/main.c
+++ b/drivers/bcma/main.c
@@ -276,6 +276,13 @@ int bcma_bus_register(struct bcma_bus *bus)
276void bcma_bus_unregister(struct bcma_bus *bus) 276void bcma_bus_unregister(struct bcma_bus *bus)
277{ 277{
278 struct bcma_device *cores[3]; 278 struct bcma_device *cores[3];
279 int err;
280
281 err = bcma_gpio_unregister(&bus->drv_cc);
282 if (err == -EBUSY)
283 bcma_err(bus, "Some GPIOs are still in use.\n");
284 else if (err)
285 bcma_err(bus, "Can not unregister GPIO driver: %i\n", err);
279 286
280 cores[0] = bcma_find_core(bus, BCMA_CORE_MIPS_74K); 287 cores[0] = bcma_find_core(bus, BCMA_CORE_MIPS_74K);
281 cores[1] = bcma_find_core(bus, BCMA_CORE_PCIE); 288 cores[1] = bcma_find_core(bus, BCMA_CORE_PCIE);