drivers: net: xgene: Get channel number from device binding
authorIyappan Subramanian <isubramanian@apm.com>
Fri, 29 Apr 2016 18:10:13 +0000 (11:10 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 2 May 2016 20:47:54 +0000 (16:47 -0400)
commit2a37daa634416a617bb8e9032626ab491004e7da
treea7f3001451dce7fece3b95f0f9e78b5992d80b23
parent582a1db98892ef4c1f34c7338b272331994d44ab
drivers: net: xgene: Get channel number from device binding

This patch gets ethernet to CPU channel (prefetch buffer number) from
the newly added 'channel' property, thus decoupling Linux driver from
resource management.

Signed-off-by: Iyappan Subramanian <isubramanian@apm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/apm/xgene/xgene_enet_main.c