Skip to content

Commit

Permalink
net: fman: Store initialization function in match data
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Sean Anderson authored and Jakub Kicinski committed Aug 19, 2022
1 parent 478eb95 commit 28c3948
Show file tree
Hide file tree
Showing 2 changed files with 165 additions and 192 deletions.
Loading

0 comments on commit 28c3948

Please sign in to comment.