dl2k: Reorder and cleanup initialization
authorOndrej Zary <linux@rainbow-software.org>
Thu, 19 Nov 2015 19:13:05 +0000 (20:13 +0100)
committerDavid S. Miller <davem@davemloft.net>
Fri, 20 Nov 2015 19:48:27 +0000 (14:48 -0500)
commit966e07f4bf11f9fcce57c706903defe86516344c
treecadeef9c0cc790f98eac603c5f130c8f8cc67732
parent39536ff81e81fef6202612a3ba98aa21fa00c254
dl2k: Reorder and cleanup initialization

Move HW init and stop into separate functions.
Request IRQ only after the HW has been reset (so interrupts are
disabled and no stale interrupts are pending).

Signed-off-by: Ondrej Zary <linux@rainbow-software.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/dlink/dl2k.c