Re: [PATCH v2 10/14] net; ethernet: ti: cpsw: move irq stuff under cpsw_common

From: Grygorii Strashko
Date: Tue Aug 09 2016 - 11:44:02 EST


On 08/06/2016 01:48 PM, Ivan Khoronzhuk wrote:
The irq data are common per net device. So no need to hold these

May be rephrase it a bit.

data per net dev, move it under cpsw_common. Also delete irq_num
var, as after optimization it's not needed. Correct number of
irqs to 2, as anyway, driver is using only 2, at least for now.

Signed-off-by: Ivan Khoronzhuk <ivan.khoronzhuk@xxxxxxxxxx>
---
drivers/net/ethernet/ti/cpsw.c | 65 +++++++++++++++++++-----------------------
1 file changed, 29 insertions(+), 36 deletions(-)

diff --git a/drivers/net/ethernet/ti/cpsw.c b/drivers/net/ethernet/ti/cpsw.c





--
regards,
-grygorii