main.c (38fd2c202a3d82bc12430bce5789fa2c2a406f71) main.c (7c1bc0da3206de789a71c4aae8ac44d580bc5578)
1/*
2 * Sonics Silicon Backplane
3 * Subsystem core
4 *
5 * Copyright 2005, Broadcom Corporation
6 * Copyright 2006, 2007, Michael Buesch <m@bues.ch>
7 *
8 * Licensed under the GNU/GPL. See COPYING for details.

--- 579 unchanged lines hidden (view full) ---

588 * (no udelay() available). So do it here in attach stage.
589 */
590 err = ssb_bus_powerup(bus, 0);
591 if (err)
592 goto error;
593 ssb_pcicore_init(&bus->pcicore);
594 if (bus->bustype == SSB_BUSTYPE_SSB)
595 ssb_watchdog_register(bus);
1/*
2 * Sonics Silicon Backplane
3 * Subsystem core
4 *
5 * Copyright 2005, Broadcom Corporation
6 * Copyright 2006, 2007, Michael Buesch <m@bues.ch>
7 *
8 * Licensed under the GNU/GPL. See COPYING for details.

--- 579 unchanged lines hidden (view full) ---

588 * (no udelay() available). So do it here in attach stage.
589 */
590 err = ssb_bus_powerup(bus, 0);
591 if (err)
592 goto error;
593 ssb_pcicore_init(&bus->pcicore);
594 if (bus->bustype == SSB_BUSTYPE_SSB)
595 ssb_watchdog_register(bus);
596
597 err = ssb_gpio_init(bus);
598 if (err == -ENOTSUPP)
599 ssb_dbg("GPIO driver not activated\n");
600 else if (err)
601 ssb_dbg("Error registering GPIO driver: %i\n", err);
602
596 ssb_bus_may_powerdown(bus);
597
598 err = ssb_devices_register(bus);
599error:
600 if (err) {
601 drop_them_all = 1;
602 list_del(&bus->list);
603 continue;

--- 221 unchanged lines hidden (view full) ---

825
826 /* Initialize basic system devices (if available) */
827 err = ssb_bus_powerup(bus, 0);
828 if (err)
829 goto err_pcmcia_exit;
830 ssb_chipcommon_init(&bus->chipco);
831 ssb_extif_init(&bus->extif);
832 ssb_mipscore_init(&bus->mipscore);
603 ssb_bus_may_powerdown(bus);
604
605 err = ssb_devices_register(bus);
606error:
607 if (err) {
608 drop_them_all = 1;
609 list_del(&bus->list);
610 continue;

--- 221 unchanged lines hidden (view full) ---

832
833 /* Initialize basic system devices (if available) */
834 err = ssb_bus_powerup(bus, 0);
835 if (err)
836 goto err_pcmcia_exit;
837 ssb_chipcommon_init(&bus->chipco);
838 ssb_extif_init(&bus->extif);
839 ssb_mipscore_init(&bus->mipscore);
833 err = ssb_gpio_init(bus);
834 if (err == -ENOTSUPP)
835 ssb_dbg("GPIO driver not activated\n");
836 else if (err)
837 ssb_dbg("Error registering GPIO driver: %i\n", err);
838 err = ssb_fetch_invariants(bus, get_invariants);
839 if (err) {
840 ssb_bus_may_powerdown(bus);
841 goto err_pcmcia_exit;
842 }
843 ssb_bus_may_powerdown(bus);
844
845 /* Queue it for attach.

--- 658 unchanged lines hidden ---
840 err = ssb_fetch_invariants(bus, get_invariants);
841 if (err) {
842 ssb_bus_may_powerdown(bus);
843 goto err_pcmcia_exit;
844 }
845 ssb_bus_may_powerdown(bus);
846
847 /* Queue it for attach.

--- 658 unchanged lines hidden ---