|
@@ -2851,18 +2851,12 @@ static void __init multi_init_ports(void)
|
|
|
printk("IIR_RET = %x\n",b_ret);
|
|
|
}
|
|
|
|
|
|
- if(IIR_RS232 == (b_ret & IIR_RS232))
|
|
|
- {
|
|
|
- mtpt->interface = RS232;
|
|
|
- }
|
|
|
- if(IIR_RS422 == (b_ret & IIR_RS422))
|
|
|
- {
|
|
|
+ /* default to RS232 */
|
|
|
+ mtpt->interface = RS232;
|
|
|
+ if (IIR_RS422 == (b_ret & IIR_TYPE_MASK))
|
|
|
mtpt->interface = RS422PTP;
|
|
|
- }
|
|
|
- if(IIR_RS485 == (b_ret & IIR_RS485))
|
|
|
- {
|
|
|
+ if (IIR_RS485 == (b_ret & IIR_TYPE_MASK))
|
|
|
mtpt->interface = RS485NE;
|
|
|
- }
|
|
|
}
|
|
|
}
|
|
|
}
|