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; }
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; }