]> 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)
commit70fe600ec619a20a280dbb69cc46334ee87cd704
tree4d6795c0850b14fe7b12211449c963ab7f384a25
parent83628601cfcf3f3bdc40339909cb760fb7f0890b
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