summaryrefslogtreecommitdiffstats
path: root/drivers/net
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2010-05-06 12:15:59 +0200
committerDavid S. Miller <davem@davemloft.net>2010-05-06 13:02:01 +0200
commit80ea76bb2575c426154b8d61d324197ee3592baa (patch)
tree257713f00d4373d9a41d6d566cd3ac08fb097632 /drivers/net
parentsctp: Fix a race between ICMP protocol unreachable and connect() (diff)
downloadlinux-80ea76bb2575c426154b8d61d324197ee3592baa.tar.xz
linux-80ea76bb2575c426154b8d61d324197ee3592baa.zip
phy: Fix initialization in micrel driver.
Missing name string in ks8001_driver, so we crash on register. Reported-by: Ingo Molnar <mingo@elte.hu> Tested-by: Ingo Molnar <mingo@elte.hu> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net')
-rw-r--r--drivers/net/phy/micrel.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/phy/micrel.c b/drivers/net/phy/micrel.c
index 0cd80e4d71d9..e67691dca4ab 100644
--- a/drivers/net/phy/micrel.c
+++ b/drivers/net/phy/micrel.c
@@ -32,6 +32,7 @@ static int kszphy_config_init(struct phy_device *phydev)
static struct phy_driver ks8001_driver = {
.phy_id = PHY_ID_KS8001,
+ .name = "Micrel KS8001",
.phy_id_mask = 0x00fffff0,
.features = PHY_BASIC_FEATURES,
.flags = PHY_POLL,