#endif
-static unsigned int num_ports;
-
extern int hp300_uart_scode;
/* Offset to UART registers from base of DCA */
out_8(d->resource.start + DIO_VIRADDRBASE + DCA_ID, 0xff);
udelay(100);
- num_ports++;
-
return 0;
}
#endif
static int __init hp300_8250_init(void)
{
static int called = 0;
+ int num_ports;
#ifdef CONFIG_HPAPCI
int line;
unsigned long base;
if (!MACH_IS_HP300)
return -ENODEV;
+ num_ports = 0;
+
#ifdef CONFIG_HPDCA
- dio_register_driver(&hpdca_driver);
+ if (dio_module_init(&hpdca_driver) == 0)
+ num_ports++;
#endif
#ifdef CONFIG_HPAPCI
if (hp300_model < HP_400) {