void karo_fdt_fixup_flexcan(void *blob, int xcvr_present)
{
+ int ret;
const char *xcvr_status = "disabled";
#ifndef CONFIG_SYS_LVDS_IF
karo_fdt_set_lcd_pins(blob, "lcdif_24bit_pins_a");
}
#endif
- fdt_find_and_setprop(blob, "reg_can_xcvr", "status",
- xcvr_status, strlen(xcvr_status) + 1, 1);
+ debug("Disabling CAN XCVR\n");
+ ret = fdt_find_and_setprop(blob, "reg_can_xcvr", "status",
+ xcvr_status, strlen(xcvr_status) + 1, 1);
+ if (ret)
+ printf("Failed to disable CAN transceiver switch: %s\n",
+ fdt_strerror(ret));
}
void karo_fdt_del_prop(void *blob, const char *compat, phys_addr_t offs,