main.c (37a7f8762d84327f8e7a8b7d7557c8415b42fc13) | main.c (1716bcf3f76fe71e98d4851a3eb73ea3d93d4773) |
---|---|
1/* 2 * Broadcom specific AMBA 3 * Bus subsystem 4 * 5 * Licensed under the GNU/GPL. See COPYING for details. 6 */ 7 8#include "bcma_private.h" --- 159 unchanged lines hidden (view full) --- 168 struct bcma_device *core; 169 int err; 170 171 list_for_each_entry(core, &bus->cores, list) { 172 /* We support that cores ourself */ 173 switch (core->id.id) { 174 case BCMA_CORE_4706_CHIPCOMMON: 175 case BCMA_CORE_CHIPCOMMON: | 1/* 2 * Broadcom specific AMBA 3 * Bus subsystem 4 * 5 * Licensed under the GNU/GPL. See COPYING for details. 6 */ 7 8#include "bcma_private.h" --- 159 unchanged lines hidden (view full) --- 168 struct bcma_device *core; 169 int err; 170 171 list_for_each_entry(core, &bus->cores, list) { 172 /* We support that cores ourself */ 173 switch (core->id.id) { 174 case BCMA_CORE_4706_CHIPCOMMON: 175 case BCMA_CORE_CHIPCOMMON: |
176 case BCMA_CORE_NS_CHIPCOMMON_B: |
|
176 case BCMA_CORE_PCI: 177 case BCMA_CORE_PCIE: 178 case BCMA_CORE_PCIE2: 179 case BCMA_CORE_MIPS_74K: 180 case BCMA_CORE_4706_MAC_GBIT_COMMON: 181 continue; 182 } 183 --- 98 unchanged lines hidden (view full) --- 282 283 /* Init CC core */ 284 core = bcma_find_core(bus, bcma_cc_core_id(bus)); 285 if (core) { 286 bus->drv_cc.core = core; 287 bcma_core_chipcommon_init(&bus->drv_cc); 288 } 289 | 177 case BCMA_CORE_PCI: 178 case BCMA_CORE_PCIE: 179 case BCMA_CORE_PCIE2: 180 case BCMA_CORE_MIPS_74K: 181 case BCMA_CORE_4706_MAC_GBIT_COMMON: 182 continue; 183 } 184 --- 98 unchanged lines hidden (view full) --- 283 284 /* Init CC core */ 285 core = bcma_find_core(bus, bcma_cc_core_id(bus)); 286 if (core) { 287 bus->drv_cc.core = core; 288 bcma_core_chipcommon_init(&bus->drv_cc); 289 } 290 |
291 /* Init CC core */ 292 core = bcma_find_core(bus, BCMA_CORE_NS_CHIPCOMMON_B); 293 if (core) { 294 bus->drv_cc_b.core = core; 295 bcma_core_chipcommon_b_init(&bus->drv_cc_b); 296 } 297 |
|
290 /* Init MIPS core */ 291 core = bcma_find_core(bus, BCMA_CORE_MIPS_74K); 292 if (core) { 293 bus->drv_mips.core = core; 294 bcma_core_mips_init(&bus->drv_mips); 295 } 296 297 /* Init PCIE core */ --- 38 unchanged lines hidden (view full) --- 336 int err; 337 338 err = bcma_gpio_unregister(&bus->drv_cc); 339 if (err == -EBUSY) 340 bcma_err(bus, "Some GPIOs are still in use.\n"); 341 else if (err) 342 bcma_err(bus, "Can not unregister GPIO driver: %i\n", err); 343 | 298 /* Init MIPS core */ 299 core = bcma_find_core(bus, BCMA_CORE_MIPS_74K); 300 if (core) { 301 bus->drv_mips.core = core; 302 bcma_core_mips_init(&bus->drv_mips); 303 } 304 305 /* Init PCIE core */ --- 38 unchanged lines hidden (view full) --- 344 int err; 345 346 err = bcma_gpio_unregister(&bus->drv_cc); 347 if (err == -EBUSY) 348 bcma_err(bus, "Some GPIOs are still in use.\n"); 349 else if (err) 350 bcma_err(bus, "Can not unregister GPIO driver: %i\n", err); 351 |
352 bcma_core_chipcommon_b_free(&bus->drv_cc_b); 353 |
|
344 cores[0] = bcma_find_core(bus, BCMA_CORE_MIPS_74K); 345 cores[1] = bcma_find_core(bus, BCMA_CORE_PCIE); 346 cores[2] = bcma_find_core(bus, BCMA_CORE_4706_MAC_GBIT_COMMON); 347 348 bcma_unregister_cores(bus); 349 350 kfree(cores[2]); 351 kfree(cores[1]); --- 189 unchanged lines hidden --- | 354 cores[0] = bcma_find_core(bus, BCMA_CORE_MIPS_74K); 355 cores[1] = bcma_find_core(bus, BCMA_CORE_PCIE); 356 cores[2] = bcma_find_core(bus, BCMA_CORE_4706_MAC_GBIT_COMMON); 357 358 bcma_unregister_cores(bus); 359 360 kfree(cores[2]); 361 kfree(cores[1]); --- 189 unchanged lines hidden --- |