]> git.baikalelectronics.ru Git - kernel.git/commit
net: phy: dp83867: Allocate state struct in probe
authorTrent Piepho <tpiepho@impinj.com>
Wed, 22 May 2019 18:43:27 +0000 (18:43 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 23 May 2019 00:40:18 +0000 (17:40 -0700)
commit7648bce41ffa5272adb02d6529c16985f6570566
tree4d6795c0850b14fe7b12211449c963ab7f384a25
parent11463894b52a48ded8ec3b2425f375ca715c0520
net: phy: dp83867: Allocate state struct in probe

This was being done in config the first time the phy was configured.
Should be in the probe method.

Cc: Andrew Lunn <andrew@lunn.ch>
Cc: Florian Fainelli <f.fainelli@gmail.com>
Cc: Heiner Kallweit <hkallweit1@gmail.com>
Signed-off-by: Trent Piepho <tpiepho@impinj.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/dp83867.c