]> git.baikalelectronics.ru Git - kernel.git/commit
net: fman: Store initialization function in match data
authorSean Anderson <sean.anderson@seco.com>
Thu, 18 Aug 2022 16:16:31 +0000 (12:16 -0400)
committerJakub Kicinski <kuba@kernel.org>
Fri, 19 Aug 2022 23:35:54 +0000 (16:35 -0700)
commit196145d6a1ab2d177a2b10e2b66caedfd14d93d9
tree181eba454a8fce56ee5f7c09e5dc80a32418658d
parent607fa95cff4c7182690a3c839418958c080e628f
net: fman: Store initialization function in match data

Instead of re-matching the compatible string in order to determine the init
function, just store it in the match data. The separate setup functions
aren't needed anymore. Merge their content into init as well. To ensure
everything compiles correctly, we move them to the bottom of the file.

Signed-off-by: Sean Anderson <sean.anderson@seco.com>
Acked-by: Camelia Groza <camelia.groza@nxp.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/freescale/fman/mac.c
drivers/net/ethernet/freescale/fman/mac.h