summaryrefslogtreecommitdiff
path: root/drivers/dahdi/xpp/xbus-pcm.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/dahdi/xpp/xbus-pcm.c')
-rw-r--r--drivers/dahdi/xpp/xbus-pcm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/dahdi/xpp/xbus-pcm.c b/drivers/dahdi/xpp/xbus-pcm.c
index 6522a91..99f9c03 100644
--- a/drivers/dahdi/xpp/xbus-pcm.c
+++ b/drivers/dahdi/xpp/xbus-pcm.c
@@ -414,7 +414,7 @@ static void reset_sync_counters(void)
(e.g: wrong firmware version, etc).
*/
if(xbus->self_ticking) {
- if(XBUS_IS(xbus, DISCONNECTED)) {
+ if(!XBUS_FLAGS(xbus, CONNECTED)) {
XBUS_DBG(GENERAL, xbus,
"Dropped packet. Is shutting down.\n");
} else {
@@ -554,7 +554,7 @@ static void update_sync_master(xbus_t *new_syncer, bool force_dahdi)
xbus_t *xbus = xbus_num(i);
if(!xbus)
continue;
- if(!XBUS_IS(xbus, DISCONNECTED) && xbus != new_syncer) {
+ if(XBUS_FLAGS(xbus, CONNECTED) && xbus != new_syncer) {
if(xbus->self_ticking)
xbus_request_sync(xbus, SYNC_MODE_PLL);
else