Lines Matching refs:res
554 int res; in ar7_register_uarts() local
573 res = early_serial_setup(&uart_port); in ar7_register_uarts()
574 if (res) in ar7_register_uarts()
575 return res; in ar7_register_uarts()
584 res = early_serial_setup(&uart_port); in ar7_register_uarts()
585 if (res) in ar7_register_uarts()
586 return res; in ar7_register_uarts()
642 int res; in ar7_register_devices() local
644 res = ar7_gpio_init(); in ar7_register_devices()
645 if (res) in ar7_register_devices()
646 pr_warn("unable to register gpios: %d\n", res); in ar7_register_devices()
648 res = ar7_register_uarts(); in ar7_register_devices()
649 if (res) in ar7_register_devices()
650 pr_err("unable to setup uart(s): %d\n", res); in ar7_register_devices()
652 res = platform_device_register(&physmap_flash); in ar7_register_devices()
653 if (res) in ar7_register_devices()
654 pr_warn("unable to register physmap-flash: %d\n", res); in ar7_register_devices()
660 res = platform_device_register(&vlynq_low); in ar7_register_devices()
661 if (res) in ar7_register_devices()
662 pr_warn("unable to register vlynq-low: %d\n", res); in ar7_register_devices()
666 res = platform_device_register(&vlynq_high); in ar7_register_devices()
667 if (res) in ar7_register_devices()
668 pr_warn("unable to register vlynq-high: %d\n", res); in ar7_register_devices()
672 res = fixed_phy_add(PHY_POLL, cpmac_high.id, in ar7_register_devices()
674 if (!res) { in ar7_register_devices()
677 res = platform_device_register(&cpmac_high); in ar7_register_devices()
678 if (res) in ar7_register_devices()
680 res); in ar7_register_devices()
682 pr_warn("unable to add cpmac-high phy: %d\n", res); in ar7_register_devices()
686 res = fixed_phy_add(PHY_POLL, cpmac_low.id, &fixed_phy_status); in ar7_register_devices()
687 if (!res) { in ar7_register_devices()
689 res = platform_device_register(&cpmac_low); in ar7_register_devices()
690 if (res) in ar7_register_devices()
691 pr_warn("unable to register cpmac-low: %d\n", res); in ar7_register_devices()
693 pr_warn("unable to add cpmac-low phy: %d\n", res); in ar7_register_devices()
696 res = platform_device_register(&ar7_gpio_leds); in ar7_register_devices()
697 if (res) in ar7_register_devices()
698 pr_warn("unable to register leds: %d\n", res); in ar7_register_devices()
700 res = platform_device_register(&ar7_udc); in ar7_register_devices()
701 if (res) in ar7_register_devices()
702 pr_warn("unable to register usb slave: %d\n", res); in ar7_register_devices()
715 res = platform_device_register(&ar7_wdt); in ar7_register_devices()
716 if (res) in ar7_register_devices()
717 pr_warn("unable to register watchdog: %d\n", res); in ar7_register_devices()