summaryrefslogtreecommitdiffstats
path: root/drivers/atm/lanai.c
diff options
context:
space:
mode:
authorClaudiu Manoil <claudiu.manoil@freescale.com>2014-03-11 18:01:24 +0200
committerDavid S. Miller <davem@davemloft.net>2014-03-12 00:47:52 -0400
commitb338ce270ed589f8a7b62e239632baa48f947b17 (patch)
treecbf5b4ece8cd443b52ca7a4b91cc5482adc0ccb3 /drivers/atm/lanai.c
parent4f1d4d54f99e9302058764833028712c3454266b (diff)
downloadlinux-b338ce270ed589f8a7b62e239632baa48f947b17.tar.bz2
gianfar: Fix multi-queue support checks @probe()
priv is not instantiated at gfar_of_init() time, when parsing the DT for info on supported HW queues. Before the netdev can be allocated, the number of supported queues must be known. Because the number of supported queues depends on device type, move the compatibility checks before netdev allocation. Local vars are used to hold the operation mode info before netdev allocation. This fixes the null accesses for priv->.., in gfar_of_init. Signed-off-by: Claudiu Manoil <claudiu.manoil@freescale.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/atm/lanai.c')
0 files changed, 0 insertions, 0 deletions