net; ethernet: ti: cpsw: move irq stuff under cpsw_common
authorIvan Khoronzhuk <ivan.khoronzhuk@linaro.org>
Tue, 9 Aug 2016 23:22:41 +0000 (02:22 +0300)
committerDavid S. Miller <davem@davemloft.net>
Thu, 11 Aug 2016 00:27:40 +0000 (17:27 -0700)
commite38b5a3db84c75c418d8c08863e005bda077f382
tree09108c15e1002e12003e520e6e267da062f7cebe
parent2c836bd9a247132ff478857ec7b41a740df5ab64
net; ethernet: ti: cpsw: move irq stuff under cpsw_common

The irq data are common for net devs in dual_emac mode. So no need to
hold these data in every priv struct, move them 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@linaro.org>
Reviewed-by: Mugunthan V N <mugunthanvnm@ti.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/ti/cpsw.c