if (ip_active(port) &&
((ip_kotype(port) == IKOT_CLOCK) ||
(ip_kotype(port) == IKOT_CLOCK_CTRL))) {
- clock = (clock_t) port->ip_kobject;
+ clock = (clock_t)ip_get_kobject(port);
}
ip_unlock(port);
}
ip_lock(port);
if (ip_active(port) &&
(ip_kotype(port) == IKOT_CLOCK_CTRL)) {
- clock = (clock_t) port->ip_kobject;
+ clock = (clock_t) ip_get_kobject(port);
}
ip_unlock(port);
}
return clock;
}
if (ip_kotype(port) == IKOT_CLOCK) {
- clock = (clock_t) port->ip_kobject;
+ clock = (clock_t) ip_get_kobject(port);
}
ip_unlock(port);
return clock;