diff --git a/examples/tty/serial.c b/examples/tty/serial.c
index 04c2c8a2231f0a892a47649d069226a59b76f6fd..7a26451b3ea789f051c0da9874c1000261082f9d 100644
--- a/examples/tty/serial.c
+++ b/examples/tty/serial.c
@@ -423,7 +423,7 @@ int create_serial_devices(ec_master_t *master, ec_domain_t *domain)
 
 /*****************************************************************************/
 
-void cleanup_serial_devices(void)
+void free_serial_devices(void)
 {
     printk(KERN_INFO PFX "Cleaning up serial devices...\n");
 
diff --git a/examples/tty/serial.h b/examples/tty/serial.h
index beff8e8f281eda33949085c3680a49d3bbf770d6..3525c2be37d3bf0bb2302b11f77b61a6f71f02a6 100644
--- a/examples/tty/serial.h
+++ b/examples/tty/serial.h
@@ -29,6 +29,7 @@
 
 int create_serial_devices(ec_master_t *, ec_domain_t *);
 void free_serial_devices(void);
+
 void run_serial_devices(u8 *);
 
 /*****************************************************************************/