Clear domains before slave configs, because domain references the FMMU
authorFlorian Pose <fp@igh-essen.com>
Thu, 12 Jun 2008 07:32:05 +0000
changeset 994 e29edcced328
parent 993 8c32564252fd
child 995 54149a703c47
Clear domains before slave configs, because domain references the FMMU
configurations.
master/master.c
--- a/master/master.c	Thu Jun 12 07:26:38 2008 +0000
+++ b/master/master.c	Thu Jun 12 07:32:05 2008 +0000
@@ -229,9 +229,9 @@
 #ifdef EC_EOE
     ec_master_clear_eoe_handlers(master);
 #endif
+    ec_master_clear_domains(master);
     ec_master_destroy_slave_configs(master);
     ec_master_clear_slaves(master);
-    ec_master_clear_domains(master);
     ec_fsm_master_clear(&master->fsm);
     ec_datagram_clear(&master->fsm_datagram);
     ec_device_clear(&master->backup_device);