equal
deleted
inserted
replaced
616 EC_INFO("%s opened.\n", dev->name); |
616 EC_INFO("%s opened.\n", dev->name); |
617 if (!eoe->slave) |
617 if (!eoe->slave) |
618 EC_WARN("device %s is not coupled to any EoE slave!\n", dev->name); |
618 EC_WARN("device %s is not coupled to any EoE slave!\n", dev->name); |
619 else { |
619 else { |
620 eoe->slave->requested_state = EC_SLAVE_STATE_OP; |
620 eoe->slave->requested_state = EC_SLAVE_STATE_OP; |
621 eoe->slave->state_error = 0; |
621 eoe->slave->error_flag = 0; |
622 } |
622 } |
623 return 0; |
623 return 0; |
624 } |
624 } |
625 |
625 |
626 /*****************************************************************************/ |
626 /*****************************************************************************/ |
639 EC_INFO("%s stopped.\n", dev->name); |
639 EC_INFO("%s stopped.\n", dev->name); |
640 if (!eoe->slave) |
640 if (!eoe->slave) |
641 EC_WARN("device %s is not coupled to any EoE slave!\n", dev->name); |
641 EC_WARN("device %s is not coupled to any EoE slave!\n", dev->name); |
642 else { |
642 else { |
643 eoe->slave->requested_state = EC_SLAVE_STATE_INIT; |
643 eoe->slave->requested_state = EC_SLAVE_STATE_INIT; |
644 eoe->slave->state_error = 0; |
644 eoe->slave->error_flag = 0; |
645 } |
645 } |
646 return 0; |
646 return 0; |
647 } |
647 } |
648 |
648 |
649 /*****************************************************************************/ |
649 /*****************************************************************************/ |