]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
net: ethernet: oa_tc6: mdiobus->parent initialized with NULL
authorSelvamani Rajagopal <Selvamani.Rajagopal@onsemi.com>
Thu, 11 Jun 2026 21:55:39 +0000 (14:55 -0700)
committerJakub Kicinski <kuba@kernel.org>
Mon, 15 Jun 2026 23:32:09 +0000 (16:32 -0700)
commita221d3f7e3f3ea6a3b4bc511cf2a59242daa06e1
tree66bffa1afe50fba5d8456cba731af4d2c7ee4cca
parentb542d13fab0f556660ce5f10179fb3ae66bdb9a4
net: ethernet: oa_tc6: mdiobus->parent initialized with NULL

As "dev" pointer in oa_tc6 structure is never initialized,
mbiobus->parent was initialized with NULL.  This change
fixes it by initializing it with device pointer of spi.

Fixes: 8f9bf857e43b ("net: ethernet: oa_tc6: implement internal PHY initialization")
Signed-off-by: Selvamani Rajagopal <Selvamani.Rajagopal@onsemi.com>
Link: https://patch.msgid.link/20260611-level-trigger-v5-2-4533a9e85ce2@onsemi.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/oa_tc6.c