diff options
| author | 2019-01-19 22:07:05 +0100 | |
|---|---|---|
| committer | 2019-01-19 16:09:14 -0800 | |
| commit | 703732f0058bd48842aa882217c26a3b3ed30216 (patch) | |
| tree | 50b4f83276c0a3a76fc4b493487c4cccd2848200 /drivers/fpga/fpga-mgr.c | |
| parent | r8169: reset chip synchronously in __rtl8169_resume (diff) | |
| download | linux-dev-703732f0058bd48842aa882217c26a3b3ed30216.tar.xz linux-dev-703732f0058bd48842aa882217c26a3b3ed30216.zip | |
r8169: replace mii_bus member with phy_device member in struct rtl8169_private
Accessing the phy_device indirectly via the netdevice causes few issues:
- Accessing the phy_device when it's not attached may cause a NPE.
- If we have to access the phy_device when it's not attached we have
to use mdiobus_get_phy() to get a reference to the phy_device.
Therefore store a phy_device reference in struct rtl8169_private directly.
Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/fpga/fpga-mgr.c')
0 files changed, 0 insertions, 0 deletions
