]> git.itanic.dy.fi Git - linux-stable/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)
commit28c3948a018dd3b94329230f3d5415fe7d8bc1a1
tree181eba454a8fce56ee5f7c09e5dc80a32418658d
parent478eb957ced6b1adbea6ffb00036138174585ba1
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