]> git.baikalelectronics.ru Git - kernel.git/commit
net: gianfar: remove the unneeded check of disabled device
authorKevin Hao <haokexin@gmail.com>
Wed, 28 Jan 2015 12:06:48 +0000 (20:06 +0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 29 Jan 2015 22:51:11 +0000 (14:51 -0800)
commit5b88340bc4bacbbecbd2c87e011f954593585f4d
tree7c2a56ea8eff82fcc6a379693a8711d4a6aa5f79
parent1fbff6b518561fb31d2230277beddfb3505bd864
net: gianfar: remove the unneeded check of disabled device

Since commit 4a7c23ad4e4e ("of/device: Don't register disabled
devices"), the disabled device will not be registered at all. So we
don't need to do the check again in the platform device driver.

Signed-off-by: Kevin Hao <haokexin@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/freescale/gianfar.c