OSDN Git Service

net: smsc911x: Move interrupt allocation to open/stop
authorJeremy Linton <jeremy.linton@arm.com>
Thu, 1 Sep 2016 20:15:09 +0000 (15:15 -0500)
committerDavid S. Miller <davem@davemloft.net>
Sat, 3 Sep 2016 00:28:33 +0000 (17:28 -0700)
commitf252974eaa64f64b940894f24bfa162a8e7f6b0d
treec97f637bcf2ad4599b2dea546c87b508219236ce
parenta85f00c36ef53ea3cb5ebf3dee4ce9cc6726671f
net: smsc911x: Move interrupt allocation to open/stop

The /proc/irq/xx information is incorrect for smsc911x because
the request_irq is happening before the register_netdev has the
proper device name. Moving it to the open also fixes the case
of when the device is renamed.

Reported-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Jeremy Linton <jeremy.linton@arm.com>
Tested-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/smsc/smsc911x.c