298 goto out_release_master; |
298 goto out_release_master; |
299 } |
299 } |
300 |
300 |
301 #ifdef CONFIGURE_PDOS |
301 #ifdef CONFIGURE_PDOS |
302 printk(KERN_INFO PFX "Configuring Pdos...\n"); |
302 printk(KERN_INFO PFX "Configuring Pdos...\n"); |
303 if (ecrt_slave_config_sync_managers(sc_ana_in, EC_END, el3162_syncs)) { |
303 if (ecrt_slave_config_pdos(sc_ana_in, EC_END, el3162_syncs)) { |
304 printk(KERN_ERR PFX "Failed to configure Pdos.\n"); |
304 printk(KERN_ERR PFX "Failed to configure Pdos.\n"); |
305 goto out_release_master; |
305 goto out_release_master; |
306 } |
306 } |
307 |
307 |
308 if (!(sc = ecrt_master_slave_config(master, DigOutSlavePos, Beckhoff_EL2004))) { |
308 if (!(sc = ecrt_master_slave_config(master, DigOutSlavePos, Beckhoff_EL2004))) { |
309 printk(KERN_ERR PFX "Failed to get slave configuration.\n"); |
309 printk(KERN_ERR PFX "Failed to get slave configuration.\n"); |
310 goto out_release_master; |
310 goto out_release_master; |
311 } |
311 } |
312 |
312 |
313 if (ecrt_slave_config_sync_managers(sc, EC_END, el2004_syncs)) { |
313 if (ecrt_slave_config_pdos(sc, EC_END, el2004_syncs)) { |
314 printk(KERN_ERR PFX "Failed to configure Pdos.\n"); |
314 printk(KERN_ERR PFX "Failed to configure Pdos.\n"); |
315 goto out_release_master; |
315 goto out_release_master; |
316 } |
316 } |
317 #endif |
317 #endif |
318 |
318 |