net: ethernet: cpsw: fix build warnings for CPSW when CPTS not selected
authorMugunthan V N <mugunthanvnm@ti.com>
Tue, 27 Nov 2012 07:53:40 +0000 (07:53 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 28 Nov 2012 22:51:16 +0000 (17:51 -0500)
commit3177bf6f922f62743133abbcbbbb5545f4133b2d
tree4fd61e11cf9b4e2b600c21e94470e1bb36ac37a9
parent83a9d197c7ecd1913e84aaa982a7215666b656f2
net: ethernet: cpsw: fix build warnings for CPSW when CPTS not selected

CC      drivers/net/ethernet/ti/cpsw.o
drivers/net/ethernet/ti/cpsw.c: In function 'cpsw_ndo_ioctl':
drivers/net/ethernet/ti/cpsw.c:881:20: warning: unused variable 'priv'

The build warning is generated when CPTS is not selected in Kernel Build.
Fixing by passing the net_device pointer to cpts IOCTL instead of passing priv

Signed-off-by: Mugunthan V N <mugunthanvnm@ti.com>
Acked-by: Richard Cochran <richardcochran@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/ti/cpsw.c