[PATCH v2 6/9] atm/suni.c: call atm_dev_signal_change() when signal changes.

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Karl Hiramoto
Date: Monday, July 5, 2010 - 1:45 am

Propagate changes to upper atm layer.

Signed-off-by: Karl Hiramoto <karl@hiramoto.org>
---
 drivers/atm/suni.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/drivers/atm/suni.c b/drivers/atm/suni.c
index da4b91f..41c56ea 100644
--- a/drivers/atm/suni.c
+++ b/drivers/atm/suni.c
@@ -291,8 +291,9 @@ static int suni_ioctl(struct atm_dev *dev,unsigned int cmd,void __user *arg)
 
 static void poll_los(struct atm_dev *dev)
 {
-	dev->signal = GET(RSOP_SIS) & SUNI_RSOP_SIS_LOSV ? ATM_PHY_SIG_LOST :
-	  ATM_PHY_SIG_FOUND;
+	atm_dev_signal_change(dev,
+		GET(RSOP_SIS) & SUNI_RSOP_SIS_LOSV ?
+		ATM_PHY_SIG_LOST : ATM_PHY_SIG_FOUND);
 }
 
 
-- 
1.7.1

--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH v2 6/9] atm/suni.c: call atm_dev_signal_change() wh ..., Karl Hiramoto, (Mon Jul 5, 1:45 am)
Re: [PATCH v2 1/9] atm: propagate signal changes via notifier, chas williams - CONT ..., (Tue Jul 6, 12:29 pm)
Re: [PATCH v2 1/9] atm: propagate signal changes via notifier, chas williams - CONT ..., (Tue Jul 6, 12:33 pm)
Re: [PATCH v2 1/9] atm: propagate signal changes via notifier, chas williams - CONT ..., (Tue Jul 6, 12:41 pm)