Lines Matching refs:res

568 	int res;  in ar7_register_uarts()  local
586 res = early_serial_setup(&uart_port); in ar7_register_uarts()
587 if (res) in ar7_register_uarts()
588 return res; in ar7_register_uarts()
597 res = early_serial_setup(&uart_port); in ar7_register_uarts()
598 if (res) in ar7_register_uarts()
599 return res; in ar7_register_uarts()
655 int res; in ar7_register_devices() local
657 res = ar7_register_uarts(); in ar7_register_devices()
658 if (res) in ar7_register_devices()
659 pr_err("unable to setup uart(s): %d\n", res); in ar7_register_devices()
661 res = platform_device_register(&physmap_flash); in ar7_register_devices()
662 if (res) in ar7_register_devices()
663 pr_warn("unable to register physmap-flash: %d\n", res); in ar7_register_devices()
669 res = platform_device_register(&vlynq_low); in ar7_register_devices()
670 if (res) in ar7_register_devices()
671 pr_warn("unable to register vlynq-low: %d\n", res); in ar7_register_devices()
675 res = platform_device_register(&vlynq_high); in ar7_register_devices()
676 if (res) in ar7_register_devices()
677 pr_warn("unable to register vlynq-high: %d\n", res); in ar7_register_devices()
681 res = fixed_phy_add(PHY_POLL, cpmac_high.id, in ar7_register_devices()
683 if (!res) { in ar7_register_devices()
686 res = platform_device_register(&cpmac_high); in ar7_register_devices()
687 if (res) in ar7_register_devices()
689 res); in ar7_register_devices()
691 pr_warn("unable to add cpmac-high phy: %d\n", res); in ar7_register_devices()
695 res = fixed_phy_add(PHY_POLL, cpmac_low.id, &fixed_phy_status, -1); in ar7_register_devices()
696 if (!res) { in ar7_register_devices()
698 res = platform_device_register(&cpmac_low); in ar7_register_devices()
699 if (res) in ar7_register_devices()
700 pr_warn("unable to register cpmac-low: %d\n", res); in ar7_register_devices()
702 pr_warn("unable to add cpmac-low phy: %d\n", res); in ar7_register_devices()
705 res = platform_device_register(&ar7_gpio_leds); in ar7_register_devices()
706 if (res) in ar7_register_devices()
707 pr_warn("unable to register leds: %d\n", res); in ar7_register_devices()
709 res = platform_device_register(&ar7_udc); in ar7_register_devices()
710 if (res) in ar7_register_devices()
711 pr_warn("unable to register usb slave: %d\n", res); in ar7_register_devices()
724 res = platform_device_register(&ar7_wdt); in ar7_register_devices()
725 if (res) in ar7_register_devices()
726 pr_warn("unable to register watchdog: %d\n", res); in ar7_register_devices()