]> git.baikalelectronics.ru Git - kernel.git/commit
net: fs_enet: Fix wrong check in do_pd_setup
authorZheng Yongjun <zhengyongjun3@huawei.com>
Thu, 8 Sep 2022 13:55:13 +0000 (13:55 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 16 Sep 2022 11:13:00 +0000 (12:13 +0100)
commit69637f0070fd2be7a0f2a7508a0d30d63e6f00fd
treed411c32eb7b924ea618cd46695a7b5a75997bca9
parent9c4b1c49fdc2081803b7a232e3719d3f0a73cd17
net: fs_enet: Fix wrong check in do_pd_setup

Should check of_iomap return value 'fep->fec.fecp' instead of 'fep->fcc.fccp'

Fixes: 04e0d0e98e18 ("fs_enet: Be an of_platform device when CONFIG_PPC_CPM_NEW_BINDING is set.")
Signed-off-by: Zheng Yongjun <zhengyongjun3@huawei.com>
Reviewed-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/freescale/fs_enet/mac-fec.c