]> 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)
commitbb9ca9371cdca7b32ecfc9f474c0340a5eb43447
tree181eba454a8fce56ee5f7c09e5dc80a32418658d
parent8a859d4a4670d3bb6516d5aff5b3873f2b78446f
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