]> 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)
commit2eecb9582a0ef48eba363ae50010def84d10b3bc
tree7c2a56ea8eff82fcc6a379693a8711d4a6aa5f79
parentc02784bf5f66cda46f588a3e62c8aa3f262e1db3
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