const char *devpath = opt_dtuart;
char *options;
- if ( !console_has("dtuart") || !strcmp(opt_dtuart, "") )
+ if ( !console_has("dtuart") )
+ return; /* Not for us */
+
+ if ( !strcmp(opt_dtuart, "") )
{
- printk("No console\n");
+ printk("No dtuart path configured\n");
return;
}
else
options = "";
- printk("Looking for UART console %s\n", devpath);
+ printk("Looking for dtuart at \"%s\", options \"%s\"\n", devpath, options);
if ( *devpath == '/' )
dev = dt_find_node_by_path(devpath);
else
ret = device_init(dev, DEVICE_SERIAL, options);
if ( ret )
- printk("Unable to initialize serial: %d\n", ret);
+ printk("Unable to initialize dtuart: %d\n", ret);
}
/*