MCPcopy Create free account
hub / github.com/RT-Thread/rt-thread / serial8250_remove

Function serial8250_remove

bsp/rockchip/rk3500/driver/uart8250/core.c:132–150  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

130}
131
132rt_err_t serial8250_remove(struct serial8250 *serial)
133{
134 rt_err_t err;
135
136 rt_iounmap((void *)serial->base);
137 serial->base = RT_NULL;
138
139 rt_pic_irq_mask(serial->irq);
140 rt_pic_detach_irq(serial->irq, serial);
141
142 err = rt_device_unregister(&serial->parent.parent);
143
144 if (!err && serial->remove)
145 {
146 serial->remove(serial);
147 }
148
149 return err;
150}
151
152rt_uint32_t serial8250_in(struct serial8250 *serial, int offset)
153{

Callers

nothing calls this directly

Calls 4

rt_iounmapFunction · 0.85
rt_pic_irq_maskFunction · 0.85
rt_pic_detach_irqFunction · 0.85
rt_device_unregisterFunction · 0.85

Tested by

no test coverage detected