serial: refactor device creation Turn serial_init into an inline function. Signed-off-by: Blue Swirl <blauwirbel@gmail.com>