diff -r b3beaa00640f -r c0405659a74a drivers/ec_module.c --- a/drivers/ec_module.c Fri Jan 13 13:44:22 2006 +0000 +++ b/drivers/ec_module.c Fri Jan 13 15:39:38 2006 +0000 @@ -24,6 +24,9 @@ #include "ec_module.h" +int __init ecat_init_module(void); +void __exit ecat_cleanup_module(void); + /*****************************************************************************/ #define LIT(X) #X @@ -229,6 +232,11 @@ return NULL; } + if (EtherCAT_scan_for_slaves(&ecat_masters[index]) != 0) { + printk(KERN_ERR "EtherCAT: Could not scan for slaves!\n"); + return NULL; + } + ecat_masters_reserved[index] = 1; printk(KERN_INFO "EtherCAT: Reserved master %i.\n", index);