gianfar: fix compile fail for NET_POLL=y due to struct packing
authorPaul Gortmaker <paul.gortmaker@windriver.com>
Sun, 24 Feb 2013 05:38:31 +0000 (05:38 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sun, 24 Feb 2013 17:04:01 +0000 (12:04 -0500)
commit62ed839dba70edfdc20a9aab92edff0451078584
tree929ea8774ba76b15d3111871ec10630f0ce42cd6
parentda8c87241c26aac81a64c7e4d21d438a33018f4e
gianfar: fix compile fail for NET_POLL=y due to struct packing

Commit ee873fda3bec7c668407b837fc5519eb961fcd37 ("gianfar: Pack struct
gfar_priv_grp into three cachelines") moved the irq number and names
off into a separate struct and created accessors for them.  However
it was never tested with NET_POLL enabled, and so some conversions
that were simply overlooked went undetected until now.

Make the netpoll ones also use the gfar_irq() accessors.

Reported-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: Claudiu Manoil <claudiu.manoil@freescale.com>
Cc: Jianhua Xie <jianhua.xie@freescale.com>
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/freescale/gianfar.c