]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitbf22bb70b972ac2ec2a32f76ede2bea75f57be2b
treec97f637bcf2ad4599b2dea546c87b508219236ce
parent55a9ba7d7a2a8abc0eebf6a2073e0be85e36ff57
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