devices/8139too-2.6.19-ethercat.c
changeset 639 aa23c48dca2d
parent 573 cdee4ea90ce9
child 670 f57de4585a5f
equal deleted inserted replaced
638:b0994b4e3b37 639:aa23c48dca2d
  1071 	tp->mii.reg_num_mask = 0x1f;
  1071 	tp->mii.reg_num_mask = 0x1f;
  1072 
  1072 
  1073 	/* dev is fully set up and ready to use now */
  1073 	/* dev is fully set up and ready to use now */
  1074     
  1074     
  1075 	// offer device to EtherCAT master module
  1075 	// offer device to EtherCAT master module
  1076 	if (ecdev_offer(dev, &tp->ecdev, "8139too", board_idx,
  1076 	if (ecdev_offer(dev, ec_poll, THIS_MODULE, &tp->ecdev)) {
  1077 				ec_poll, THIS_MODULE)) {
       
  1078 		printk(KERN_ERR PFX "Failed to offer device.\n");
  1077 		printk(KERN_ERR PFX "Failed to offer device.\n");
  1079 		goto err_out;
  1078 		goto err_out;
  1080 	}
  1079 	}
  1081 
  1080 
  1082 	if (!tp->ecdev) {
  1081 	if (!tp->ecdev) {