-static inline int
-serial_register_onedev(unsigned long baddr, void *vaddr, int irq, unsigned int baud_base)
-{
- struct serial_struct req;
-
- memset(&req, 0, sizeof(req));
- req.irq = irq;
- req.flags = UPF_AUTOPROBE | UPF_RESOURCES |
- UPF_SHARE_IRQ;
- req.baud_base = baud_base;
- req.io_type = UPIO_MEM;
- req.iomem_base = vaddr;
- req.iomem_reg_shift = 2;
- req.iomap_base = baddr;
-
- return register_serial(&req);
-}
-