コード例 #1
0
ファイル: uart6850.c プロジェクト: GodFox/magx_kernel_xpixl
static int __init init_uart6850(void)
{
	cfg_mpu.io_base = io;
	cfg_mpu.irq = irq;

	if (cfg_mpu.io_base == -1 || cfg_mpu.irq == -1) {
		printk(KERN_INFO "uart6850: irq and io must be set.\n");
		return -EINVAL;
	}

	if (probe_uart6850(&cfg_mpu))
		return -ENODEV;
	attach_uart6850(&cfg_mpu);

	return 0;
}
コード例 #2
0
ファイル: uart6850.c プロジェクト: nos1609/Chrono_Kernel-1
static int __init init_uart6850(void)
{
	cfg_mpu.io_base = io;
	cfg_mpu.irq = irq;

	if (cfg_mpu.io_base == -1 || cfg_mpu.irq == -1) {
#ifdef CONFIG_DEBUG_PRINTK
		printk(KERN_INFO "uart6850: irq and io must be set.\n");
#else
		;
#endif
		return -EINVAL;
	}

	if (probe_uart6850(&cfg_mpu))
		return -ENODEV;
	attach_uart6850(&cfg_mpu);

	return 0;
}