diff --git a/master/domain.c b/master/domain.c
index c622dacc1441cb0273d83d51ffca3524b8afe97d..87e4c230c8e91af5e0d1d783bf1dd6d110b45618 100644
--- a/master/domain.c
+++ b/master/domain.c
@@ -62,6 +62,7 @@ ec_data_reg_t;
 
 /*****************************************************************************/
 
+void ec_domain_clear(struct kobject *);
 void ec_domain_clear_data_regs(ec_domain_t *);
 ssize_t ec_show_domain_attribute(struct kobject *, struct attribute *, char *);
 
diff --git a/master/domain.h b/master/domain.h
index 7251106372fb0eb2117ac4ffedeab4da77d80463..2382d01e2af11f9fad86de00d9d0e1a08f8a0c14 100644
--- a/master/domain.h
+++ b/master/domain.h
@@ -76,7 +76,6 @@ struct ec_domain
 /*****************************************************************************/
 
 int ec_domain_init(ec_domain_t *, ec_master_t *, unsigned int);
-void ec_domain_clear(struct kobject *);
 int ec_domain_alloc(ec_domain_t *, uint32_t);
 void ec_domain_queue(ec_domain_t *);
 
diff --git a/master/master.c b/master/master.c
index 8fcb0402a112ead47eaabc20c695d508f0781564..16967053f7bdfe15e2af5f391818f9c2b9d41c77 100644
--- a/master/master.c
+++ b/master/master.c
@@ -54,6 +54,7 @@
 
 /*****************************************************************************/
 
+void ec_master_clear(struct kobject *);
 void ec_master_sync_io(ec_master_t *);
 void ec_master_idle_run(void *);
 void ec_master_eoe_run(unsigned long);
diff --git a/master/master.h b/master/master.h
index e706089f9333724054fa6646870d958ab509ac29..0d62f876b99ff30d03eea30b4232b7955f43b3e3 100644
--- a/master/master.h
+++ b/master/master.h
@@ -143,7 +143,6 @@ struct ec_master
 
 // master creation and deletion
 int ec_master_init(ec_master_t *, unsigned int, unsigned int, dev_t);
-void ec_master_clear(struct kobject *);
 void ec_master_reset(ec_master_t *);
 
 // free run
diff --git a/master/slave.c b/master/slave.c
index af31a0fa61ce5c9921fd1d2d0496ffc4a60841c5..2e8909e5c00ba01f9b40896901113e553133ec54 100644
--- a/master/slave.c
+++ b/master/slave.c
@@ -52,6 +52,7 @@ extern const ec_code_msg_t al_status_messages[];
 
 /*****************************************************************************/
 
+void ec_slave_clear(struct kobject *);
 ssize_t ec_show_slave_attribute(struct kobject *, struct attribute *, char *);
 ssize_t ec_store_slave_attribute(struct kobject *, struct attribute *,
                                  const char *, size_t);
diff --git a/master/slave.h b/master/slave.h
index 60d73c527ac64357dd3d80ca5e2b2fd20ed0a3f5..cbf68e89412a1d8331fb8d35f8860f4b329d869b 100644
--- a/master/slave.h
+++ b/master/slave.h
@@ -296,7 +296,6 @@ struct ec_slave
 
 // slave construction/destruction
 int ec_slave_init(ec_slave_t *, ec_master_t *, uint16_t, uint16_t);
-void ec_slave_clear(struct kobject *);
 
 int ec_slave_prepare_fmmu(ec_slave_t *, const ec_domain_t *,
                           const ec_sii_sync_t *);