318 goto out_release_master; |
318 goto out_release_master; |
319 } |
319 } |
320 |
320 |
321 #ifdef CONFIGURE_PDOS |
321 #ifdef CONFIGURE_PDOS |
322 printk(KERN_INFO PFX "Configuring Pdos...\n"); |
322 printk(KERN_INFO PFX "Configuring Pdos...\n"); |
323 if (ecrt_slave_config_sync_managers(sc_ana_in, EC_END, el3162_syncs)) { |
323 if (ecrt_slave_config_pdos(sc_ana_in, EC_END, el3162_syncs)) { |
324 printk(KERN_ERR PFX "Failed to configure Pdos.\n"); |
324 printk(KERN_ERR PFX "Failed to configure Pdos.\n"); |
325 goto out_release_master; |
325 goto out_release_master; |
326 } |
326 } |
327 |
327 |
328 if (!(sc = ecrt_master_slave_config( |
328 if (!(sc = ecrt_master_slave_config( |
329 master, DigOutSlavePos, Beckhoff_EL2004))) { |
329 master, DigOutSlavePos, Beckhoff_EL2004))) { |
330 printk(KERN_ERR PFX "Failed to get slave configuration.\n"); |
330 printk(KERN_ERR PFX "Failed to get slave configuration.\n"); |
331 goto out_release_master; |
331 goto out_release_master; |
332 } |
332 } |
333 |
333 |
334 if (ecrt_slave_config_sync_managers(sc, EC_END, el2004_syncs)) { |
334 if (ecrt_slave_config_pdos(sc, EC_END, el2004_syncs)) { |
335 printk(KERN_ERR PFX "Failed to configure Pdos.\n"); |
335 printk(KERN_ERR PFX "Failed to configure Pdos.\n"); |
336 goto out_release_master; |
336 goto out_release_master; |
337 } |
337 } |
338 #endif |
338 #endif |
339 |
339 |